This is page 145 of 181. Use http://codebase.md/xmlui-org/xmlui/tools/vscode/resources/assets/img/%7B$item.flickr_images[0]%7D?lines=true&page={x} to view the full context.
# Directory Structure
```
├── .changeset
│ ├── config.json
│ ├── silver-llamas-cough.md
│ └── true-jeans-agree.md
├── .eslintrc.cjs
├── .github
│ ├── build-checklist.png
│ ├── ISSUE_TEMPLATE
│ │ ├── bug_report.md
│ │ └── feature_request.md
│ └── workflows
│ ├── deploy-blog.yml
│ ├── deploy-docs-optimized.yml
│ ├── deploy-docs.yml
│ ├── prepare-versions.yml
│ ├── release-packages.yml
│ ├── run-all-tests.yml
│ └── run-smoke-tests.yml
├── .gitignore
├── .prettierrc.js
├── .vscode
│ ├── launch.json
│ └── settings.json
├── blog
│ ├── .gitignore
│ ├── .gitkeep
│ ├── CHANGELOG.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── blog
│ │ │ ├── images
│ │ │ │ ├── an-advanced-codefence.mp4
│ │ │ │ ├── blog-page-component.png
│ │ │ │ ├── blog-scrabble.png
│ │ │ │ ├── integrated-blog-search.png
│ │ │ │ ├── lorem-ipsum.png
│ │ │ │ ├── playground-checkbox-source.png
│ │ │ │ ├── playground.png
│ │ │ │ ├── use-xmlui-mcp-to-find-a-howto.png
│ │ │ │ └── xmlui-demo-gallery.png
│ │ │ ├── introducing-xmlui.md
│ │ │ ├── lorem-ipsum.md
│ │ │ ├── newest-post.md
│ │ │ ├── older-post.md
│ │ │ ├── xmlui-playground.md
│ │ │ └── xmlui-powered-blog.md
│ │ ├── mockServiceWorker.js
│ │ ├── resources
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ └── for-download
│ │ │ │ └── xmlui
│ │ │ │ └── xmlui-standalone.umd.js
│ │ │ ├── github.svg
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ ├── rss.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── web.config
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ └── PageNotFound.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── blog-theme.ts
│ └── tsconfig.json
├── CONTRIBUTING.md
├── docs
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── ComponentRefLinks.txt
│ ├── content
│ │ ├── _meta.json
│ │ ├── components
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── APICall.md
│ │ │ ├── App.md
│ │ │ ├── AppHeader.md
│ │ │ ├── AppState.md
│ │ │ ├── AutoComplete.md
│ │ │ ├── Avatar.md
│ │ │ ├── Backdrop.md
│ │ │ ├── Badge.md
│ │ │ ├── BarChart.md
│ │ │ ├── Bookmark.md
│ │ │ ├── Breakout.md
│ │ │ ├── Button.md
│ │ │ ├── Card.md
│ │ │ ├── Carousel.md
│ │ │ ├── ChangeListener.md
│ │ │ ├── Checkbox.md
│ │ │ ├── CHStack.md
│ │ │ ├── ColorPicker.md
│ │ │ ├── Column.md
│ │ │ ├── ContentSeparator.md
│ │ │ ├── CVStack.md
│ │ │ ├── DataSource.md
│ │ │ ├── DateInput.md
│ │ │ ├── DatePicker.md
│ │ │ ├── DonutChart.md
│ │ │ ├── DropdownMenu.md
│ │ │ ├── EmojiSelector.md
│ │ │ ├── ExpandableItem.md
│ │ │ ├── FileInput.md
│ │ │ ├── FileUploadDropZone.md
│ │ │ ├── FlowLayout.md
│ │ │ ├── Footer.md
│ │ │ ├── Form.md
│ │ │ ├── FormItem.md
│ │ │ ├── FormSection.md
│ │ │ ├── Fragment.md
│ │ │ ├── H1.md
│ │ │ ├── H2.md
│ │ │ ├── H3.md
│ │ │ ├── H4.md
│ │ │ ├── H5.md
│ │ │ ├── H6.md
│ │ │ ├── Heading.md
│ │ │ ├── HSplitter.md
│ │ │ ├── HStack.md
│ │ │ ├── Icon.md
│ │ │ ├── IFrame.md
│ │ │ ├── Image.md
│ │ │ ├── Items.md
│ │ │ ├── LabelList.md
│ │ │ ├── Legend.md
│ │ │ ├── LineChart.md
│ │ │ ├── Link.md
│ │ │ ├── List.md
│ │ │ ├── Logo.md
│ │ │ ├── Markdown.md
│ │ │ ├── MenuItem.md
│ │ │ ├── MenuSeparator.md
│ │ │ ├── ModalDialog.md
│ │ │ ├── NavGroup.md
│ │ │ ├── NavLink.md
│ │ │ ├── NavPanel.md
│ │ │ ├── NoResult.md
│ │ │ ├── NumberBox.md
│ │ │ ├── Option.md
│ │ │ ├── Page.md
│ │ │ ├── PageMetaTitle.md
│ │ │ ├── Pages.md
│ │ │ ├── Pagination.md
│ │ │ ├── PasswordInput.md
│ │ │ ├── PieChart.md
│ │ │ ├── ProgressBar.md
│ │ │ ├── Queue.md
│ │ │ ├── RadioGroup.md
│ │ │ ├── RealTimeAdapter.md
│ │ │ ├── Redirect.md
│ │ │ ├── Select.md
│ │ │ ├── Slider.md
│ │ │ ├── Slot.md
│ │ │ ├── SpaceFiller.md
│ │ │ ├── Spinner.md
│ │ │ ├── Splitter.md
│ │ │ ├── Stack.md
│ │ │ ├── StickyBox.md
│ │ │ ├── SubMenuItem.md
│ │ │ ├── Switch.md
│ │ │ ├── TabItem.md
│ │ │ ├── Table.md
│ │ │ ├── TableOfContents.md
│ │ │ ├── Tabs.md
│ │ │ ├── Text.md
│ │ │ ├── TextArea.md
│ │ │ ├── TextBox.md
│ │ │ ├── Theme.md
│ │ │ ├── TimeInput.md
│ │ │ ├── Timer.md
│ │ │ ├── ToneChangerButton.md
│ │ │ ├── ToneSwitch.md
│ │ │ ├── Tooltip.md
│ │ │ ├── Tree.md
│ │ │ ├── VSplitter.md
│ │ │ ├── VStack.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ ├── xmlui-spreadsheet
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Spreadsheet.md
│ │ │ └── xmlui-website-blocks
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── Carousel.md
│ │ │ ├── HelloMd.md
│ │ │ ├── HeroSection.md
│ │ │ └── ScrollToTop.md
│ │ └── extensions
│ │ ├── _meta.json
│ │ ├── xmlui-animations
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ ├── Animation.md
│ │ │ ├── FadeAnimation.md
│ │ │ ├── FadeInAnimation.md
│ │ │ ├── FadeOutAnimation.md
│ │ │ ├── ScaleAnimation.md
│ │ │ └── SlideInAnimation.md
│ │ └── xmlui-website-blocks
│ │ ├── _meta.json
│ │ ├── _overview.md
│ │ ├── Carousel.md
│ │ ├── HelloMd.md
│ │ ├── HeroSection.md
│ │ └── ScrollToTop.md
│ ├── extensions.ts
│ ├── index.html
│ ├── index.ts
│ ├── package.json
│ ├── public
│ │ ├── feed.rss
│ │ ├── mockServiceWorker.js
│ │ ├── pages
│ │ │ ├── _meta.json
│ │ │ ├── app-structure.md
│ │ │ ├── build-editor-component.md
│ │ │ ├── build-hello-world-component.md
│ │ │ ├── components-intro.md
│ │ │ ├── context-variables.md
│ │ │ ├── forms.md
│ │ │ ├── globals.md
│ │ │ ├── glossary.md
│ │ │ ├── helper-tags.md
│ │ │ ├── hosted-deployment.md
│ │ │ ├── howto
│ │ │ │ ├── assign-a-complex-json-literal-to-a-component-variable.md
│ │ │ │ ├── chain-a-refetch.md
│ │ │ │ ├── control-cache-invalidation.md
│ │ │ │ ├── debug-a-component.md
│ │ │ │ ├── delay-a-datasource-until-another-datasource-is-ready.md
│ │ │ │ ├── delegate-a-method.md
│ │ │ │ ├── do-custom-form-validation.md
│ │ │ │ ├── expose-a-method-from-a-component.md
│ │ │ │ ├── filter-and-transform-data-from-an-api.md
│ │ │ │ ├── group-items-in-list-by-a-property.md
│ │ │ │ ├── handle-background-operations.md
│ │ │ │ ├── hide-an-element-until-its-datasource-is-ready.md
│ │ │ │ ├── make-a-set-of-equal-width-cards.md
│ │ │ │ ├── make-a-table-responsive.md
│ │ │ │ ├── make-navpanel-width-responsive.md
│ │ │ │ ├── modify-a-value-reported-in-a-column.md
│ │ │ │ ├── paginate-a-list.md
│ │ │ │ ├── pass-data-to-a-modal-dialog.md
│ │ │ │ ├── react-to-button-click-not-keystrokes.md
│ │ │ │ ├── set-the-initial-value-of-a-select-from-fetched-data.md
│ │ │ │ ├── share-a-modaldialog-across-components.md
│ │ │ │ ├── sync-selections-between-table-and-list-views.md
│ │ │ │ ├── update-ui-optimistically.md
│ │ │ │ ├── use-built-in-form-validation.md
│ │ │ │ └── use-the-same-modaldialog-to-add-or-edit.md
│ │ │ ├── howto.md
│ │ │ ├── intro.md
│ │ │ ├── layout.md
│ │ │ ├── markup.md
│ │ │ ├── mcp.md
│ │ │ ├── modal-dialogs.md
│ │ │ ├── news-and-reviews.md
│ │ │ ├── reactive-intro.md
│ │ │ ├── refactoring.md
│ │ │ ├── routing-and-links.md
│ │ │ ├── samples
│ │ │ │ ├── color-palette.xmlui
│ │ │ │ ├── color-values.xmlui
│ │ │ │ ├── shadow-sizes.xmlui
│ │ │ │ ├── spacing-sizes.xmlui
│ │ │ │ ├── swatch.xmlui
│ │ │ │ ├── theme-gallery-brief.xmlui
│ │ │ │ └── theme-gallery.xmlui
│ │ │ ├── scoping.md
│ │ │ ├── scripting.md
│ │ │ ├── styles-and-themes
│ │ │ │ ├── common-units.md
│ │ │ │ ├── layout-props.md
│ │ │ │ ├── theme-variable-defaults.md
│ │ │ │ ├── theme-variables.md
│ │ │ │ └── themes.md
│ │ │ ├── template-properties.md
│ │ │ ├── test.md
│ │ │ ├── tutorial-01.md
│ │ │ ├── tutorial-02.md
│ │ │ ├── tutorial-03.md
│ │ │ ├── tutorial-04.md
│ │ │ ├── tutorial-05.md
│ │ │ ├── tutorial-06.md
│ │ │ ├── tutorial-07.md
│ │ │ ├── tutorial-08.md
│ │ │ ├── tutorial-09.md
│ │ │ ├── tutorial-10.md
│ │ │ ├── tutorial-11.md
│ │ │ ├── tutorial-12.md
│ │ │ ├── universal-properties.md
│ │ │ ├── user-defined-components.md
│ │ │ ├── vscode.md
│ │ │ ├── working-with-markdown.md
│ │ │ ├── working-with-text.md
│ │ │ ├── xmlui-animations
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── Animation.md
│ │ │ │ ├── FadeAnimation.md
│ │ │ │ ├── FadeInAnimation.md
│ │ │ │ ├── FadeOutAnimation.md
│ │ │ │ ├── ScaleAnimation.md
│ │ │ │ └── SlideInAnimation.md
│ │ │ ├── xmlui-charts
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── DonutChart.md
│ │ │ │ ├── LabelList.md
│ │ │ │ ├── Legend.md
│ │ │ │ ├── LineChart.md
│ │ │ │ └── PieChart.md
│ │ │ ├── xmlui-pdf
│ │ │ │ ├── _meta.json
│ │ │ │ ├── _overview.md
│ │ │ │ └── Pdf.md
│ │ │ └── xmlui-spreadsheet
│ │ │ ├── _meta.json
│ │ │ ├── _overview.md
│ │ │ └── Spreadsheet.md
│ │ ├── resources
│ │ │ ├── devdocs
│ │ │ │ ├── debug-proxy-object-2.png
│ │ │ │ ├── debug-proxy-object.png
│ │ │ │ ├── table_editor_01.png
│ │ │ │ ├── table_editor_02.png
│ │ │ │ ├── table_editor_03.png
│ │ │ │ ├── table_editor_04.png
│ │ │ │ ├── table_editor_05.png
│ │ │ │ ├── table_editor_06.png
│ │ │ │ ├── table_editor_07.png
│ │ │ │ ├── table_editor_08.png
│ │ │ │ ├── table_editor_09.png
│ │ │ │ ├── table_editor_10.png
│ │ │ │ ├── table_editor_11.png
│ │ │ │ ├── table-editor-01.png
│ │ │ │ ├── table-editor-02.png
│ │ │ │ ├── table-editor-03.png
│ │ │ │ ├── table-editor-04.png
│ │ │ │ ├── table-editor-06.png
│ │ │ │ ├── table-editor-07.png
│ │ │ │ ├── table-editor-08.png
│ │ │ │ ├── table-editor-09.png
│ │ │ │ └── xmlui-rendering-of-tiptap-markdown.png
│ │ │ ├── favicon.ico
│ │ │ ├── files
│ │ │ │ ├── clients.json
│ │ │ │ ├── daily-revenue.json
│ │ │ │ ├── dashboard-stats.json
│ │ │ │ ├── demo.xmlui
│ │ │ │ ├── demo.xmlui.xs
│ │ │ │ ├── downloads
│ │ │ │ │ └── downloads.json
│ │ │ │ ├── for-download
│ │ │ │ │ ├── index-with-api.html
│ │ │ │ │ ├── index.html
│ │ │ │ │ ├── mockApi.js
│ │ │ │ │ ├── start-darwin.sh
│ │ │ │ │ ├── start-linux.sh
│ │ │ │ │ ├── start.bat
│ │ │ │ │ └── xmlui
│ │ │ │ │ └── xmlui-standalone.umd.js
│ │ │ │ ├── getting-started
│ │ │ │ │ ├── cl-tutorial-final.zip
│ │ │ │ │ ├── cl-tutorial.zip
│ │ │ │ │ ├── cl-tutorial2.zip
│ │ │ │ │ ├── cl-tutorial3.zip
│ │ │ │ │ ├── cl-tutorial4.zip
│ │ │ │ │ ├── cl-tutorial5.zip
│ │ │ │ │ ├── cl-tutorial6.zip
│ │ │ │ │ ├── getting-started.zip
│ │ │ │ │ ├── hello-xmlui.zip
│ │ │ │ │ ├── xmlui-empty.zip
│ │ │ │ │ └── xmlui-starter.zip
│ │ │ │ ├── howto
│ │ │ │ │ └── component-icons
│ │ │ │ │ └── up-arrow.svg
│ │ │ │ ├── invoices.json
│ │ │ │ ├── monthly-status.json
│ │ │ │ ├── news-and-reviews.json
│ │ │ │ ├── products.json
│ │ │ │ ├── releases.json
│ │ │ │ ├── tutorials
│ │ │ │ │ ├── datasource
│ │ │ │ │ │ └── api.ts
│ │ │ │ │ └── p2do
│ │ │ │ │ ├── api.ts
│ │ │ │ │ └── todo-logo.svg
│ │ │ │ └── xmlui.json
│ │ │ ├── github.svg
│ │ │ ├── images
│ │ │ │ ├── apiaction-tutorial
│ │ │ │ │ ├── add-success.png
│ │ │ │ │ ├── apiaction-param.png
│ │ │ │ │ ├── change-completed.png
│ │ │ │ │ ├── change-in-progress.png
│ │ │ │ │ ├── confirm-delete.png
│ │ │ │ │ ├── data-error.png
│ │ │ │ │ ├── data-progress.png
│ │ │ │ │ ├── data-success.png
│ │ │ │ │ ├── display-1.png
│ │ │ │ │ ├── item-deleted.png
│ │ │ │ │ ├── item-updated.png
│ │ │ │ │ ├── missing-api-key.png
│ │ │ │ │ ├── new-item-added.png
│ │ │ │ │ └── test-message.png
│ │ │ │ ├── chat-api
│ │ │ │ │ └── domain-model.svg
│ │ │ │ ├── components
│ │ │ │ │ ├── image
│ │ │ │ │ │ └── breakfast.jpg
│ │ │ │ │ ├── markdown
│ │ │ │ │ │ └── colors.png
│ │ │ │ │ └── modal
│ │ │ │ │ ├── deep_link_dialog_1.jpg
│ │ │ │ │ └── deep_link_dialog_2.jpg
│ │ │ │ ├── create-apps
│ │ │ │ │ ├── collapsed-vertical.png
│ │ │ │ │ ├── using-forms-warning-dialog.png
│ │ │ │ │ └── using-forms.png
│ │ │ │ ├── datasource-tutorial
│ │ │ │ │ ├── data-with-header.png
│ │ │ │ │ ├── filtered-data.png
│ │ │ │ │ ├── filtered-items.png
│ │ │ │ │ ├── initial-page-items.png
│ │ │ │ │ ├── list-items.png
│ │ │ │ │ ├── next-page-items.png
│ │ │ │ │ ├── no-data.png
│ │ │ │ │ ├── pagination-1.jpg
│ │ │ │ │ ├── pagination-1.png
│ │ │ │ │ ├── polling-1.png
│ │ │ │ │ ├── refetch-data.png
│ │ │ │ │ ├── slow-loading.png
│ │ │ │ │ ├── test-message.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── unconventional-data.png
│ │ │ │ │ └── unfiltered-items.png
│ │ │ │ ├── flower.jpg
│ │ │ │ ├── get-started
│ │ │ │ │ ├── add-new-contact.png
│ │ │ │ │ ├── app-modified.png
│ │ │ │ │ ├── app-start.png
│ │ │ │ │ ├── app-with-boxes.png
│ │ │ │ │ ├── app-with-toast.png
│ │ │ │ │ ├── boilerplate-structure.png
│ │ │ │ │ ├── cl-initial.png
│ │ │ │ │ ├── cl-start.png
│ │ │ │ │ ├── contact-counts.png
│ │ │ │ │ ├── contact-dialog-title.png
│ │ │ │ │ ├── contact-dialog.png
│ │ │ │ │ ├── contact-menus.png
│ │ │ │ │ ├── contact-predicates.png
│ │ │ │ │ ├── context-menu.png
│ │ │ │ │ ├── dashboard-numbers.png
│ │ │ │ │ ├── default-contact-list.png
│ │ │ │ │ ├── delete-contact.png
│ │ │ │ │ ├── delete-task.png
│ │ │ │ │ ├── detailed-template.png
│ │ │ │ │ ├── edit-contact-details.png
│ │ │ │ │ ├── edited-contact-saved.png
│ │ │ │ │ ├── empty-sections.png
│ │ │ │ │ ├── filter-completed.png
│ │ │ │ │ ├── fullwidth-desktop.png
│ │ │ │ │ ├── fullwidth-mobile.png
│ │ │ │ │ ├── initial-table.png
│ │ │ │ │ ├── items-and-badges.png
│ │ │ │ │ ├── loading-message.png
│ │ │ │ │ ├── new-contact-button.png
│ │ │ │ │ ├── new-contact-saved.png
│ │ │ │ │ ├── no-empty-sections.png
│ │ │ │ │ ├── personal-todo-initial.png
│ │ │ │ │ ├── piechart.png
│ │ │ │ │ ├── review-today.png
│ │ │ │ │ ├── rudimentary-dashboard.png
│ │ │ │ │ ├── section-collapsed.png
│ │ │ │ │ ├── sectioned-items.png
│ │ │ │ │ ├── sections-ordered.png
│ │ │ │ │ ├── spacex-list-with-links.png
│ │ │ │ │ ├── spacex-list.png
│ │ │ │ │ ├── start-personal-todo-1.png
│ │ │ │ │ ├── submit-new-contact.png
│ │ │ │ │ ├── submit-new-task.png
│ │ │ │ │ ├── syntax-highlighting.png
│ │ │ │ │ ├── table-with-badge.png
│ │ │ │ │ ├── template-with-card.png
│ │ │ │ │ ├── test-emulated-api.png
│ │ │ │ │ ├── Thumbs.db
│ │ │ │ │ ├── todo-logo.png
│ │ │ │ │ └── xmlui-tools.png
│ │ │ │ ├── HelloApp.png
│ │ │ │ ├── HelloApp2.png
│ │ │ │ ├── logos
│ │ │ │ │ ├── xmlui1.svg
│ │ │ │ │ ├── xmlui2.svg
│ │ │ │ │ ├── xmlui3.svg
│ │ │ │ │ ├── xmlui4.svg
│ │ │ │ │ ├── xmlui5.svg
│ │ │ │ │ ├── xmlui6.svg
│ │ │ │ │ └── xmlui7.svg
│ │ │ │ ├── pdf
│ │ │ │ │ └── dummy-pdf.jpg
│ │ │ │ ├── rendering-engine
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ ├── Component.svg
│ │ │ │ │ ├── CompoundComponent.svg
│ │ │ │ │ ├── RootComponent.svg
│ │ │ │ │ └── tree-with-containers.svg
│ │ │ │ ├── reviewers-guide
│ │ │ │ │ ├── AppEngine-flow.svg
│ │ │ │ │ └── incbutton-in-action.png
│ │ │ │ ├── tools
│ │ │ │ │ └── boilerplate-structure.png
│ │ │ │ ├── try.svg
│ │ │ │ ├── tutorial
│ │ │ │ │ ├── app-chat-history.png
│ │ │ │ │ ├── app-content-placeholder.png
│ │ │ │ │ ├── app-header-and-content.png
│ │ │ │ │ ├── app-links-channel-selected.png
│ │ │ │ │ ├── app-links-click.png
│ │ │ │ │ ├── app-navigation.png
│ │ │ │ │ ├── finished-ex01.png
│ │ │ │ │ ├── finished-ex02.png
│ │ │ │ │ ├── hello.png
│ │ │ │ │ ├── splash-screen-advanced.png
│ │ │ │ │ ├── splash-screen-after-click.png
│ │ │ │ │ ├── splash-screen-centered.png
│ │ │ │ │ ├── splash-screen-events.png
│ │ │ │ │ ├── splash-screen-expression.png
│ │ │ │ │ ├── splash-screen-reuse-after.png
│ │ │ │ │ ├── splash-screen-reuse-before.png
│ │ │ │ │ └── splash-screen.png
│ │ │ │ └── tutorial-01.png
│ │ │ ├── llms.txt
│ │ │ ├── logo-dark.svg
│ │ │ ├── logo.svg
│ │ │ ├── pg-popout.svg
│ │ │ └── xmlui-logo.svg
│ │ ├── serve.json
│ │ └── web.config
│ ├── scripts
│ │ ├── download-latest-xmlui.js
│ │ ├── generate-rss.js
│ │ ├── get-releases.js
│ │ └── utils.js
│ ├── src
│ │ ├── components
│ │ │ ├── BlogOverview.xmlui
│ │ │ ├── BlogPage.xmlui
│ │ │ ├── Boxes.xmlui
│ │ │ ├── Breadcrumb.xmlui
│ │ │ ├── ChangeLog.xmlui
│ │ │ ├── ColorPalette.xmlui
│ │ │ ├── DocumentLinks.xmlui
│ │ │ ├── DocumentPage.xmlui
│ │ │ ├── DocumentPageNoTOC.xmlui
│ │ │ ├── Icons.xmlui
│ │ │ ├── IncButton.xmlui
│ │ │ ├── IncButton2.xmlui
│ │ │ ├── NameValue.xmlui
│ │ │ ├── PageNotFound.xmlui
│ │ │ ├── PaletteItem.xmlui
│ │ │ ├── Palettes.xmlui
│ │ │ ├── SectionHeader.xmlui
│ │ │ ├── TBD.xmlui
│ │ │ ├── Test.xmlui
│ │ │ ├── ThemesIntro.xmlui
│ │ │ ├── ThousandThemes.xmlui
│ │ │ ├── TubeStops.xmlui
│ │ │ ├── TubeStops.xmlui.xs
│ │ │ └── TwoColumnCode.xmlui
│ │ ├── config.ts
│ │ ├── Main.xmlui
│ │ └── themes
│ │ ├── docs-theme.ts
│ │ ├── earthtone.ts
│ │ ├── xmlui-gray-on-default.ts
│ │ ├── xmlui-green-on-default.ts
│ │ └── xmlui-orange-on-default.ts
│ └── tsconfig.json
├── LICENSE
├── package-lock.json
├── package.json
├── packages
│ ├── tsconfig.json
│ ├── xmlui-animations
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── Animation.tsx
│ │ ├── AnimationNative.tsx
│ │ ├── FadeAnimation.tsx
│ │ ├── FadeInAnimation.tsx
│ │ ├── FadeOutAnimation.tsx
│ │ ├── index.tsx
│ │ ├── ScaleAnimation.tsx
│ │ └── SlideInAnimation.tsx
│ ├── xmlui-devtools
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── devtools
│ │ │ │ ├── DevTools.tsx
│ │ │ │ ├── DevToolsNative.module.scss
│ │ │ │ ├── DevToolsNative.tsx
│ │ │ │ ├── ModalDialog.module.scss
│ │ │ │ ├── ModalDialog.tsx
│ │ │ │ ├── ModalVisibilityContext.tsx
│ │ │ │ ├── Tooltip.module.scss
│ │ │ │ ├── Tooltip.tsx
│ │ │ │ └── utils.ts
│ │ │ ├── editor
│ │ │ │ └── Editor.tsx
│ │ │ └── index.tsx
│ │ └── vite.config-overrides.ts
│ ├── xmlui-hello-world
│ │ ├── .gitignore
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── HelloWorld.module.scss
│ │ ├── HelloWorld.tsx
│ │ ├── HelloWorldNative.tsx
│ │ └── index.tsx
│ ├── xmlui-os-frames
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── IPhoneFrame.module.scss
│ │ ├── IPhoneFrame.tsx
│ │ ├── MacOSAppFrame.module.scss
│ │ ├── MacOSAppFrame.tsx
│ │ ├── WindowsAppFrame.module.scss
│ │ └── WindowsAppFrame.tsx
│ ├── xmlui-pdf
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ ├── components
│ │ │ │ └── Pdf.xmlui
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── LazyPdfNative.tsx
│ │ ├── Pdf.module.scss
│ │ └── Pdf.tsx
│ ├── xmlui-playground
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── hooks
│ │ │ ├── usePlayground.ts
│ │ │ └── useToast.ts
│ │ ├── index.tsx
│ │ ├── playground
│ │ │ ├── Box.module.scss
│ │ │ ├── Box.tsx
│ │ │ ├── CodeSelector.tsx
│ │ │ ├── ConfirmationDialog.module.scss
│ │ │ ├── ConfirmationDialog.tsx
│ │ │ ├── Editor.tsx
│ │ │ ├── Header.module.scss
│ │ │ ├── Header.tsx
│ │ │ ├── Playground.tsx
│ │ │ ├── PlaygroundContent.module.scss
│ │ │ ├── PlaygroundContent.tsx
│ │ │ ├── PlaygroundNative.module.scss
│ │ │ ├── PlaygroundNative.tsx
│ │ │ ├── Preview.module.scss
│ │ │ ├── Preview.tsx
│ │ │ ├── Select.module.scss
│ │ │ ├── StandalonePlayground.tsx
│ │ │ ├── StandalonePlaygroundNative.module.scss
│ │ │ ├── StandalonePlaygroundNative.tsx
│ │ │ ├── ThemeSwitcher.module.scss
│ │ │ ├── ThemeSwitcher.tsx
│ │ │ ├── ToneSwitcher.tsx
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.tsx
│ │ │ └── utils.ts
│ │ ├── providers
│ │ │ ├── Toast.module.scss
│ │ │ └── ToastProvider.tsx
│ │ ├── state
│ │ │ └── store.ts
│ │ ├── themes
│ │ │ └── theme.ts
│ │ └── utils
│ │ └── helpers.ts
│ ├── xmlui-search
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── Search.module.scss
│ │ └── Search.tsx
│ ├── xmlui-spreadsheet
│ │ ├── .gitignore
│ │ ├── demo
│ │ │ └── Main.xmlui
│ │ ├── index.html
│ │ ├── index.ts
│ │ ├── meta
│ │ │ └── componentsMetadata.ts
│ │ ├── package.json
│ │ └── src
│ │ ├── index.tsx
│ │ ├── Spreadsheet.tsx
│ │ └── SpreadsheetNative.tsx
│ └── xmlui-website-blocks
│ ├── .gitignore
│ ├── CHANGELOG.md
│ ├── demo
│ │ ├── components
│ │ │ ├── HeroBackgroundBreakoutPage.xmlui
│ │ │ ├── HeroBackgroundsPage.xmlui
│ │ │ ├── HeroContentsPage.xmlui
│ │ │ ├── HeroTextAlignPage.xmlui
│ │ │ ├── HeroTextPage.xmlui
│ │ │ └── HeroTonesPage.xmlui
│ │ ├── Main.xmlui
│ │ └── themes
│ │ └── default.ts
│ ├── index.html
│ ├── index.ts
│ ├── meta
│ │ └── componentsMetadata.ts
│ ├── package.json
│ ├── public
│ │ └── resources
│ │ ├── building.jpg
│ │ └── xmlui-logo.svg
│ └── src
│ ├── Carousel
│ │ ├── Carousel.module.scss
│ │ ├── Carousel.tsx
│ │ ├── CarouselContext.tsx
│ │ └── CarouselNative.tsx
│ ├── FancyButton
│ │ ├── FancyButton.module.scss
│ │ ├── FancyButton.tsx
│ │ └── FancyButton.xmlui
│ ├── Hello
│ │ ├── Hello.tsx
│ │ ├── Hello.xmlui
│ │ └── Hello.xmlui.xs
│ ├── HeroSection
│ │ ├── HeroSection.module.scss
│ │ ├── HeroSection.spec.ts
│ │ ├── HeroSection.tsx
│ │ └── HeroSectionNative.tsx
│ ├── index.tsx
│ ├── ScrollToTop
│ │ ├── ScrollToTop.module.scss
│ │ ├── ScrollToTop.tsx
│ │ └── ScrollToTopNative.tsx
│ └── vite-env.d.ts
├── playwright.config.ts
├── README.md
├── tools
│ ├── codefence
│ │ └── xmlui-code-fence-docs.md
│ ├── create-app
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── create-app.ts
│ │ ├── helpers
│ │ │ ├── copy.ts
│ │ │ ├── get-pkg-manager.ts
│ │ │ ├── git.ts
│ │ │ ├── install.ts
│ │ │ ├── is-folder-empty.ts
│ │ │ ├── is-writeable.ts
│ │ │ ├── make-dir.ts
│ │ │ └── validate-pkg.ts
│ │ ├── index.ts
│ │ ├── package.json
│ │ ├── templates
│ │ │ ├── default
│ │ │ │ └── ts
│ │ │ │ ├── gitignore
│ │ │ │ ├── index.html
│ │ │ │ ├── index.ts
│ │ │ │ ├── public
│ │ │ │ │ ├── mockServiceWorker.js
│ │ │ │ │ ├── resources
│ │ │ │ │ │ ├── favicon.ico
│ │ │ │ │ │ └── xmlui-logo.svg
│ │ │ │ │ └── serve.json
│ │ │ │ └── src
│ │ │ │ ├── components
│ │ │ │ │ ├── ApiAware.xmlui
│ │ │ │ │ ├── Home.xmlui
│ │ │ │ │ ├── IncButton.xmlui
│ │ │ │ │ └── PagePanel.xmlui
│ │ │ │ ├── config.ts
│ │ │ │ └── Main.xmlui
│ │ │ ├── index.ts
│ │ │ └── types.ts
│ │ └── tsconfig.json
│ ├── create-xmlui-hello-world
│ │ ├── index.js
│ │ └── package.json
│ └── vscode
│ ├── .gitignore
│ ├── .vscode
│ │ ├── launch.json
│ │ └── tasks.json
│ ├── .vscodeignore
│ ├── build.sh
│ ├── CHANGELOG.md
│ ├── esbuild.js
│ ├── eslint.config.mjs
│ ├── formatter-docs.md
│ ├── generate-test-sample.sh
│ ├── LICENSE.md
│ ├── package-lock.json
│ ├── package.json
│ ├── README.md
│ ├── resources
│ │ ├── xmlui-logo.png
│ │ └── xmlui-markup-syntax-highlighting.png
│ ├── src
│ │ ├── extension.ts
│ │ └── server.ts
│ ├── syntaxes
│ │ └── xmlui.tmLanguage.json
│ ├── test-samples
│ │ └── sample.xmlui
│ ├── tsconfig.json
│ └── tsconfig.tsbuildinfo
├── turbo.json
└── xmlui
├── .gitignore
├── bin
│ ├── bootstrap.cjs
│ ├── bootstrap.js
│ ├── build-lib.ts
│ ├── build.ts
│ ├── index.ts
│ ├── preview.ts
│ ├── start.ts
│ ├── vite-xmlui-plugin.ts
│ └── viteConfig.ts
├── CHANGELOG.md
├── conventions
│ ├── component-qa-checklist.md
│ ├── copilot-conventions.md
│ ├── create-xmlui-components.md
│ ├── mermaid.md
│ ├── testing-conventions.md
│ └── xmlui-in-a-nutshell.md
├── dev-docs
│ ├── accessibility.md
│ ├── build-system.md
│ ├── build-xmlui.md
│ ├── component-behaviors.md
│ ├── components-with-options.md
│ ├── containers.md
│ ├── data-operations.md
│ ├── glossary.md
│ ├── index.md
│ ├── next
│ │ ├── component-dev-guide.md
│ │ ├── configuration-management-enhancement-summary.md
│ │ ├── documentation-scripts-refactoring-complete-summary.md
│ │ ├── documentation-scripts-refactoring-plan.md
│ │ ├── duplicate-pattern-extraction-summary.md
│ │ ├── error-handling-standardization-summary.md
│ │ ├── generating-component-reference.md
│ │ ├── index.md
│ │ ├── logging-consistency-implementation-summary.md
│ │ ├── project-build.md
│ │ ├── project-structure.md
│ │ ├── theme-context.md
│ │ ├── tiptap-design-considerations.md
│ │ ├── working-with-code.md
│ │ ├── xmlui-runtime-architecture
│ │ └── xmlui-wcag-accessibility-report.md
│ ├── react-fundamentals.md
│ ├── release-method.md
│ ├── standalone-app.md
│ ├── ud-components.md
│ └── xmlui-repo.md
├── package.json
├── scripts
│ ├── coverage-only.js
│ ├── e2e-test-summary.js
│ ├── generate-docs
│ │ ├── build-downloads-map.mjs
│ │ ├── build-pages-map.mjs
│ │ ├── components-config.json
│ │ ├── configuration-management.mjs
│ │ ├── constants.mjs
│ │ ├── create-theme-files.mjs
│ │ ├── DocsGenerator.mjs
│ │ ├── error-handling.mjs
│ │ ├── extensions-config.json
│ │ ├── folders.mjs
│ │ ├── generate-summary-files.mjs
│ │ ├── get-docs.mjs
│ │ ├── input-handler.mjs
│ │ ├── logger.mjs
│ │ ├── logging-standards.mjs
│ │ ├── MetadataProcessor.mjs
│ │ ├── pattern-utilities.mjs
│ │ └── utils.mjs
│ ├── get-langserver-metadata.js
│ ├── inline-links.mjs
│ └── README-e2e-summary.md
├── src
│ ├── abstractions
│ │ ├── _conventions.md
│ │ ├── ActionDefs.ts
│ │ ├── AppContextDefs.ts
│ │ ├── ComponentDefs.ts
│ │ ├── ContainerDefs.ts
│ │ ├── ExtensionDefs.ts
│ │ ├── FunctionDefs.ts
│ │ ├── RendererDefs.ts
│ │ ├── scripting
│ │ │ ├── BlockScope.ts
│ │ │ ├── Compilation.ts
│ │ │ ├── LogicalThread.ts
│ │ │ ├── LoopScope.ts
│ │ │ ├── modules.ts
│ │ │ ├── ScriptParserError.ts
│ │ │ ├── Token.ts
│ │ │ ├── TryScope.ts
│ │ │ └── TryScopeExp.ts
│ │ └── ThemingDefs.ts
│ ├── components
│ │ ├── _conventions.md
│ │ ├── abstractions.ts
│ │ ├── Accordion
│ │ │ ├── Accordion.md
│ │ │ ├── Accordion.module.scss
│ │ │ ├── Accordion.spec.ts
│ │ │ ├── Accordion.tsx
│ │ │ ├── AccordionContext.tsx
│ │ │ ├── AccordionItem.tsx
│ │ │ ├── AccordionItemNative.tsx
│ │ │ └── AccordionNative.tsx
│ │ ├── Animation
│ │ │ └── AnimationNative.tsx
│ │ ├── APICall
│ │ │ ├── APICall.md
│ │ │ ├── APICall.spec.ts
│ │ │ ├── APICall.tsx
│ │ │ └── APICallNative.tsx
│ │ ├── App
│ │ │ ├── App.md
│ │ │ ├── App.module.scss
│ │ │ ├── App.spec.ts
│ │ │ ├── App.tsx
│ │ │ ├── AppLayoutContext.ts
│ │ │ ├── AppNative.tsx
│ │ │ ├── AppStateContext.ts
│ │ │ ├── doc-resources
│ │ │ │ ├── condensed-sticky.xmlui
│ │ │ │ ├── condensed.xmlui
│ │ │ │ ├── horizontal-sticky.xmlui
│ │ │ │ ├── horizontal.xmlui
│ │ │ │ ├── vertical-full-header.xmlui
│ │ │ │ ├── vertical-sticky.xmlui
│ │ │ │ └── vertical.xmlui
│ │ │ ├── IndexerContext.ts
│ │ │ ├── LinkInfoContext.ts
│ │ │ ├── SearchContext.tsx
│ │ │ ├── Sheet.module.scss
│ │ │ └── Sheet.tsx
│ │ ├── AppHeader
│ │ │ ├── AppHeader.md
│ │ │ ├── AppHeader.module.scss
│ │ │ ├── AppHeader.spec.ts
│ │ │ ├── AppHeader.tsx
│ │ │ └── AppHeaderNative.tsx
│ │ ├── AppState
│ │ │ ├── AppState.md
│ │ │ ├── AppState.spec.ts
│ │ │ ├── AppState.tsx
│ │ │ └── AppStateNative.tsx
│ │ ├── AutoComplete
│ │ │ ├── AutoComplete.md
│ │ │ ├── AutoComplete.module.scss
│ │ │ ├── AutoComplete.spec.ts
│ │ │ ├── AutoComplete.tsx
│ │ │ ├── AutoCompleteContext.tsx
│ │ │ └── AutoCompleteNative.tsx
│ │ ├── Avatar
│ │ │ ├── Avatar.md
│ │ │ ├── Avatar.module.scss
│ │ │ ├── Avatar.spec.ts
│ │ │ ├── Avatar.tsx
│ │ │ └── AvatarNative.tsx
│ │ ├── Backdrop
│ │ │ ├── Backdrop.md
│ │ │ ├── Backdrop.module.scss
│ │ │ ├── Backdrop.spec.ts
│ │ │ ├── Backdrop.tsx
│ │ │ └── BackdropNative.tsx
│ │ ├── Badge
│ │ │ ├── Badge.md
│ │ │ ├── Badge.module.scss
│ │ │ ├── Badge.spec.ts
│ │ │ ├── Badge.tsx
│ │ │ └── BadgeNative.tsx
│ │ ├── Bookmark
│ │ │ ├── Bookmark.md
│ │ │ ├── Bookmark.module.scss
│ │ │ ├── Bookmark.spec.ts
│ │ │ ├── Bookmark.tsx
│ │ │ └── BookmarkNative.tsx
│ │ ├── Breakout
│ │ │ ├── Breakout.module.scss
│ │ │ ├── Breakout.spec.ts
│ │ │ ├── Breakout.tsx
│ │ │ └── BreakoutNative.tsx
│ │ ├── Button
│ │ │ ├── Button-style.spec.ts
│ │ │ ├── Button.md
│ │ │ ├── Button.module.scss
│ │ │ ├── Button.spec.ts
│ │ │ ├── Button.tsx
│ │ │ └── ButtonNative.tsx
│ │ ├── Card
│ │ │ ├── Card.md
│ │ │ ├── Card.module.scss
│ │ │ ├── Card.spec.ts
│ │ │ ├── Card.tsx
│ │ │ └── CardNative.tsx
│ │ ├── Carousel
│ │ │ ├── Carousel.md
│ │ │ ├── Carousel.module.scss
│ │ │ ├── Carousel.spec.ts
│ │ │ ├── Carousel.tsx
│ │ │ ├── CarouselContext.tsx
│ │ │ ├── CarouselItem.tsx
│ │ │ ├── CarouselItemNative.tsx
│ │ │ └── CarouselNative.tsx
│ │ ├── ChangeListener
│ │ │ ├── ChangeListener.md
│ │ │ ├── ChangeListener.spec.ts
│ │ │ ├── ChangeListener.tsx
│ │ │ └── ChangeListenerNative.tsx
│ │ ├── chart-color-schemes.ts
│ │ ├── Charts
│ │ │ ├── AreaChart
│ │ │ │ ├── AreaChart.md
│ │ │ │ ├── AreaChart.spec.ts
│ │ │ │ ├── AreaChart.tsx
│ │ │ │ └── AreaChartNative.tsx
│ │ │ ├── BarChart
│ │ │ │ ├── BarChart.md
│ │ │ │ ├── BarChart.module.scss
│ │ │ │ ├── BarChart.spec.ts
│ │ │ │ ├── BarChart.tsx
│ │ │ │ └── BarChartNative.tsx
│ │ │ ├── DonutChart
│ │ │ │ ├── DonutChart.spec.ts
│ │ │ │ └── DonutChart.tsx
│ │ │ ├── LabelList
│ │ │ │ ├── LabelList.spec.ts
│ │ │ │ ├── LabelList.tsx
│ │ │ │ ├── LabelListNative.module.scss
│ │ │ │ └── LabelListNative.tsx
│ │ │ ├── Legend
│ │ │ │ ├── Legend.spec.ts
│ │ │ │ ├── Legend.tsx
│ │ │ │ └── LegendNative.tsx
│ │ │ ├── LineChart
│ │ │ │ ├── LineChart.md
│ │ │ │ ├── LineChart.module.scss
│ │ │ │ ├── LineChart.spec.ts
│ │ │ │ ├── LineChart.tsx
│ │ │ │ └── LineChartNative.tsx
│ │ │ ├── PieChart
│ │ │ │ ├── PieChart.md
│ │ │ │ ├── PieChart.spec.ts
│ │ │ │ ├── PieChart.tsx
│ │ │ │ ├── PieChartNative.module.scss
│ │ │ │ └── PieChartNative.tsx
│ │ │ ├── RadarChart
│ │ │ │ ├── RadarChart.md
│ │ │ │ ├── RadarChart.spec.ts
│ │ │ │ ├── RadarChart.tsx
│ │ │ │ └── RadarChartNative.tsx
│ │ │ ├── Tooltip
│ │ │ │ ├── TooltipContent.module.scss
│ │ │ │ ├── TooltipContent.spec.ts
│ │ │ │ └── TooltipContent.tsx
│ │ │ └── utils
│ │ │ ├── abstractions.ts
│ │ │ └── ChartProvider.tsx
│ │ ├── Checkbox
│ │ │ ├── Checkbox.md
│ │ │ ├── Checkbox.spec.ts
│ │ │ └── Checkbox.tsx
│ │ ├── CodeBlock
│ │ │ ├── CodeBlock.module.scss
│ │ │ ├── CodeBlock.spec.ts
│ │ │ ├── CodeBlock.tsx
│ │ │ ├── CodeBlockNative.tsx
│ │ │ └── highlight-code.ts
│ │ ├── collectedComponentMetadata.ts
│ │ ├── ColorPicker
│ │ │ ├── ColorPicker.md
│ │ │ ├── ColorPicker.module.scss
│ │ │ ├── ColorPicker.spec.ts
│ │ │ ├── ColorPicker.tsx
│ │ │ └── ColorPickerNative.tsx
│ │ ├── Column
│ │ │ ├── Column.md
│ │ │ ├── Column.tsx
│ │ │ ├── ColumnNative.tsx
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ └── TableContext.tsx
│ │ ├── component-utils.ts
│ │ ├── ComponentProvider.tsx
│ │ ├── ComponentRegistryContext.tsx
│ │ ├── container-helpers.tsx
│ │ ├── ContentSeparator
│ │ │ ├── ContentSeparator.md
│ │ │ ├── ContentSeparator.module.scss
│ │ │ ├── ContentSeparator.spec.ts
│ │ │ ├── ContentSeparator.tsx
│ │ │ └── ContentSeparatorNative.tsx
│ │ ├── DataSource
│ │ │ ├── DataSource.md
│ │ │ └── DataSource.tsx
│ │ ├── DateInput
│ │ │ ├── DateInput.md
│ │ │ ├── DateInput.module.scss
│ │ │ ├── DateInput.spec.ts
│ │ │ ├── DateInput.tsx
│ │ │ └── DateInputNative.tsx
│ │ ├── DatePicker
│ │ │ ├── DatePicker.md
│ │ │ ├── DatePicker.module.scss
│ │ │ ├── DatePicker.spec.ts
│ │ │ ├── DatePicker.tsx
│ │ │ └── DatePickerNative.tsx
│ │ ├── DropdownMenu
│ │ │ ├── DropdownMenu.md
│ │ │ ├── DropdownMenu.module.scss
│ │ │ ├── DropdownMenu.spec.ts
│ │ │ ├── DropdownMenu.tsx
│ │ │ ├── DropdownMenuNative.tsx
│ │ │ ├── MenuItem.md
│ │ │ └── SubMenuItem.md
│ │ ├── EmojiSelector
│ │ │ ├── EmojiSelector.md
│ │ │ ├── EmojiSelector.spec.ts
│ │ │ ├── EmojiSelector.tsx
│ │ │ └── EmojiSelectorNative.tsx
│ │ ├── ExpandableItem
│ │ │ ├── ExpandableItem.module.scss
│ │ │ ├── ExpandableItem.spec.ts
│ │ │ ├── ExpandableItem.tsx
│ │ │ └── ExpandableItemNative.tsx
│ │ ├── FileInput
│ │ │ ├── FileInput.md
│ │ │ ├── FileInput.module.scss
│ │ │ ├── FileInput.spec.ts
│ │ │ ├── FileInput.tsx
│ │ │ └── FileInputNative.tsx
│ │ ├── FileUploadDropZone
│ │ │ ├── FileUploadDropZone.md
│ │ │ ├── FileUploadDropZone.module.scss
│ │ │ ├── FileUploadDropZone.spec.ts
│ │ │ ├── FileUploadDropZone.tsx
│ │ │ └── FileUploadDropZoneNative.tsx
│ │ ├── FlowLayout
│ │ │ ├── FlowLayout.md
│ │ │ ├── FlowLayout.module.scss
│ │ │ ├── FlowLayout.spec.ts
│ │ │ ├── FlowLayout.spec.ts-snapshots
│ │ │ │ └── Edge-cases-boxShadow-is-not-clipped-1-non-smoke-darwin.png
│ │ │ ├── FlowLayout.tsx
│ │ │ └── FlowLayoutNative.tsx
│ │ ├── Footer
│ │ │ ├── Footer.md
│ │ │ ├── Footer.module.scss
│ │ │ ├── Footer.spec.ts
│ │ │ ├── Footer.tsx
│ │ │ └── FooterNative.tsx
│ │ ├── Form
│ │ │ ├── Form.md
│ │ │ ├── Form.module.scss
│ │ │ ├── Form.spec.ts
│ │ │ ├── Form.tsx
│ │ │ ├── formActions.ts
│ │ │ ├── FormContext.ts
│ │ │ └── FormNative.tsx
│ │ ├── FormItem
│ │ │ ├── FormItem.md
│ │ │ ├── FormItem.module.scss
│ │ │ ├── FormItem.spec.ts
│ │ │ ├── FormItem.tsx
│ │ │ ├── FormItemNative.tsx
│ │ │ ├── HelperText.module.scss
│ │ │ ├── HelperText.tsx
│ │ │ ├── ItemWithLabel.tsx
│ │ │ └── Validations.ts
│ │ ├── FormSection
│ │ │ ├── FormSection.md
│ │ │ ├── FormSection.ts
│ │ │ └── FormSection.xmlui
│ │ ├── Fragment
│ │ │ ├── Fragment.spec.ts
│ │ │ └── Fragment.tsx
│ │ ├── Heading
│ │ │ ├── abstractions.ts
│ │ │ ├── H1.md
│ │ │ ├── H1.spec.ts
│ │ │ ├── H2.md
│ │ │ ├── H2.spec.ts
│ │ │ ├── H3.md
│ │ │ ├── H3.spec.ts
│ │ │ ├── H4.md
│ │ │ ├── H4.spec.ts
│ │ │ ├── H5.md
│ │ │ ├── H5.spec.ts
│ │ │ ├── H6.md
│ │ │ ├── H6.spec.ts
│ │ │ ├── Heading.md
│ │ │ ├── Heading.module.scss
│ │ │ ├── Heading.spec.ts
│ │ │ ├── Heading.tsx
│ │ │ └── HeadingNative.tsx
│ │ ├── HoverCard
│ │ │ ├── HoverCard.tsx
│ │ │ └── HovercardNative.tsx
│ │ ├── HtmlTags
│ │ │ ├── HtmlTags.module.scss
│ │ │ ├── HtmlTags.spec.ts
│ │ │ └── HtmlTags.tsx
│ │ ├── Icon
│ │ │ ├── AdmonitionDanger.tsx
│ │ │ ├── AdmonitionInfo.tsx
│ │ │ ├── AdmonitionNote.tsx
│ │ │ ├── AdmonitionTip.tsx
│ │ │ ├── AdmonitionWarning.tsx
│ │ │ ├── ApiIcon.tsx
│ │ │ ├── ArrowDropDown.module.scss
│ │ │ ├── ArrowDropDown.tsx
│ │ │ ├── ArrowDropUp.module.scss
│ │ │ ├── ArrowDropUp.tsx
│ │ │ ├── ArrowLeft.module.scss
│ │ │ ├── ArrowLeft.tsx
│ │ │ ├── ArrowRight.module.scss
│ │ │ ├── ArrowRight.tsx
│ │ │ ├── Attach.tsx
│ │ │ ├── Binding.module.scss
│ │ │ ├── Binding.tsx
│ │ │ ├── BoardIcon.tsx
│ │ │ ├── BoxIcon.tsx
│ │ │ ├── CheckIcon.tsx
│ │ │ ├── ChevronDownIcon.tsx
│ │ │ ├── ChevronLeft.tsx
│ │ │ ├── ChevronRight.tsx
│ │ │ ├── ChevronUpIcon.tsx
│ │ │ ├── CodeFileIcon.tsx
│ │ │ ├── CodeSandbox.tsx
│ │ │ ├── CompactListIcon.tsx
│ │ │ ├── ContentCopyIcon.tsx
│ │ │ ├── DarkToLightIcon.tsx
│ │ │ ├── DatabaseIcon.module.scss
│ │ │ ├── DatabaseIcon.tsx
│ │ │ ├── DocFileIcon.tsx
│ │ │ ├── DocIcon.tsx
│ │ │ ├── DotMenuHorizontalIcon.tsx
│ │ │ ├── DotMenuIcon.tsx
│ │ │ ├── EmailIcon.tsx
│ │ │ ├── EmptyFolderIcon.tsx
│ │ │ ├── ErrorIcon.tsx
│ │ │ ├── ExpressionIcon.tsx
│ │ │ ├── FillPlusCricleIcon.tsx
│ │ │ ├── FilterIcon.tsx
│ │ │ ├── FolderIcon.tsx
│ │ │ ├── GlobeIcon.tsx
│ │ │ ├── HomeIcon.tsx
│ │ │ ├── HyperLinkIcon.tsx
│ │ │ ├── Icon.md
│ │ │ ├── Icon.module.scss
│ │ │ ├── Icon.spec.ts
│ │ │ ├── Icon.tsx
│ │ │ ├── IconNative.tsx
│ │ │ ├── ImageFileIcon.tsx
│ │ │ ├── Inspect.tsx
│ │ │ ├── LightToDark.tsx
│ │ │ ├── LinkIcon.tsx
│ │ │ ├── ListIcon.tsx
│ │ │ ├── LooseListIcon.tsx
│ │ │ ├── MoonIcon.tsx
│ │ │ ├── MoreOptionsIcon.tsx
│ │ │ ├── NoSortIcon.tsx
│ │ │ ├── PDFIcon.tsx
│ │ │ ├── PenIcon.tsx
│ │ │ ├── PhoneIcon.tsx
│ │ │ ├── PhotoIcon.tsx
│ │ │ ├── PlusIcon.tsx
│ │ │ ├── SearchIcon.tsx
│ │ │ ├── ShareIcon.tsx
│ │ │ ├── SortAscendingIcon.tsx
│ │ │ ├── SortDescendingIcon.tsx
│ │ │ ├── StarsIcon.tsx
│ │ │ ├── SunIcon.tsx
│ │ │ ├── svg
│ │ │ │ ├── admonition_danger.svg
│ │ │ │ ├── admonition_info.svg
│ │ │ │ ├── admonition_note.svg
│ │ │ │ ├── admonition_tip.svg
│ │ │ │ ├── admonition_warning.svg
│ │ │ │ ├── api.svg
│ │ │ │ ├── arrow-dropdown.svg
│ │ │ │ ├── arrow-left.svg
│ │ │ │ ├── arrow-right.svg
│ │ │ │ ├── arrow-up.svg
│ │ │ │ ├── attach.svg
│ │ │ │ ├── binding.svg
│ │ │ │ ├── box.svg
│ │ │ │ ├── bulb.svg
│ │ │ │ ├── code-file.svg
│ │ │ │ ├── code-sandbox.svg
│ │ │ │ ├── dark_to_light.svg
│ │ │ │ ├── database.svg
│ │ │ │ ├── doc.svg
│ │ │ │ ├── empty-folder.svg
│ │ │ │ ├── expression.svg
│ │ │ │ ├── eye-closed.svg
│ │ │ │ ├── eye-dark.svg
│ │ │ │ ├── eye.svg
│ │ │ │ ├── file-text.svg
│ │ │ │ ├── filter.svg
│ │ │ │ ├── folder.svg
│ │ │ │ ├── img.svg
│ │ │ │ ├── inspect.svg
│ │ │ │ ├── light_to_dark.svg
│ │ │ │ ├── moon.svg
│ │ │ │ ├── pdf.svg
│ │ │ │ ├── photo.svg
│ │ │ │ ├── share.svg
│ │ │ │ ├── stars.svg
│ │ │ │ ├── sun.svg
│ │ │ │ ├── trending-down.svg
│ │ │ │ ├── trending-level.svg
│ │ │ │ ├── trending-up.svg
│ │ │ │ ├── txt.svg
│ │ │ │ ├── unknown-file.svg
│ │ │ │ ├── unlink.svg
│ │ │ │ └── xls.svg
│ │ │ ├── TableDeleteColumnIcon.tsx
│ │ │ ├── TableDeleteRowIcon.tsx
│ │ │ ├── TableInsertColumnIcon.tsx
│ │ │ ├── TableInsertRowIcon.tsx
│ │ │ ├── TrashIcon.tsx
│ │ │ ├── TrendingDownIcon.tsx
│ │ │ ├── TrendingLevelIcon.tsx
│ │ │ ├── TrendingUpIcon.tsx
│ │ │ ├── TxtIcon.tsx
│ │ │ ├── UnknownFileIcon.tsx
│ │ │ ├── UnlinkIcon.tsx
│ │ │ ├── UserIcon.tsx
│ │ │ ├── WarningIcon.tsx
│ │ │ └── XlsIcon.tsx
│ │ ├── IconProvider.tsx
│ │ ├── IconRegistryContext.tsx
│ │ ├── IFrame
│ │ │ ├── IFrame.md
│ │ │ ├── IFrame.module.scss
│ │ │ ├── IFrame.spec.ts
│ │ │ ├── IFrame.tsx
│ │ │ └── IFrameNative.tsx
│ │ ├── Image
│ │ │ ├── Image.md
│ │ │ ├── Image.module.scss
│ │ │ ├── Image.spec.ts
│ │ │ ├── Image.tsx
│ │ │ └── ImageNative.tsx
│ │ ├── Input
│ │ │ ├── index.ts
│ │ │ ├── InputAdornment.module.scss
│ │ │ ├── InputAdornment.tsx
│ │ │ ├── InputDivider.module.scss
│ │ │ ├── InputDivider.tsx
│ │ │ ├── InputLabel.module.scss
│ │ │ ├── InputLabel.tsx
│ │ │ ├── PartialInput.module.scss
│ │ │ └── PartialInput.tsx
│ │ ├── InspectButton
│ │ │ ├── InspectButton.module.scss
│ │ │ └── InspectButton.tsx
│ │ ├── Items
│ │ │ ├── Items.md
│ │ │ ├── Items.spec.ts
│ │ │ ├── Items.tsx
│ │ │ └── ItemsNative.tsx
│ │ ├── Link
│ │ │ ├── Link.md
│ │ │ ├── Link.module.scss
│ │ │ ├── Link.spec.ts
│ │ │ ├── Link.tsx
│ │ │ └── LinkNative.tsx
│ │ ├── List
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── List.md
│ │ │ ├── List.module.scss
│ │ │ ├── List.spec.ts
│ │ │ ├── List.tsx
│ │ │ └── ListNative.tsx
│ │ ├── Logo
│ │ │ ├── doc-resources
│ │ │ │ └── xmlui-logo.svg
│ │ │ ├── Logo.md
│ │ │ ├── Logo.tsx
│ │ │ └── LogoNative.tsx
│ │ ├── Markdown
│ │ │ ├── CodeText.module.scss
│ │ │ ├── CodeText.tsx
│ │ │ ├── Markdown.md
│ │ │ ├── Markdown.module.scss
│ │ │ ├── Markdown.spec.ts
│ │ │ ├── Markdown.tsx
│ │ │ ├── MarkdownNative.tsx
│ │ │ ├── parse-binding-expr.ts
│ │ │ └── utils.ts
│ │ ├── metadata-helpers.ts
│ │ ├── ModalDialog
│ │ │ ├── ConfirmationModalContextProvider.tsx
│ │ │ ├── Dialog.module.scss
│ │ │ ├── Dialog.tsx
│ │ │ ├── ModalDialog.md
│ │ │ ├── ModalDialog.module.scss
│ │ │ ├── ModalDialog.spec.ts
│ │ │ ├── ModalDialog.tsx
│ │ │ ├── ModalDialogNative.tsx
│ │ │ └── ModalVisibilityContext.tsx
│ │ ├── NavGroup
│ │ │ ├── NavGroup.md
│ │ │ ├── NavGroup.module.scss
│ │ │ ├── NavGroup.spec.ts
│ │ │ ├── NavGroup.tsx
│ │ │ ├── NavGroupContext.ts
│ │ │ └── NavGroupNative.tsx
│ │ ├── NavLink
│ │ │ ├── NavLink.md
│ │ │ ├── NavLink.module.scss
│ │ │ ├── NavLink.spec.ts
│ │ │ ├── NavLink.tsx
│ │ │ └── NavLinkNative.tsx
│ │ ├── NavPanel
│ │ │ ├── NavPanel.md
│ │ │ ├── NavPanel.module.scss
│ │ │ ├── NavPanel.spec.ts
│ │ │ ├── NavPanel.tsx
│ │ │ └── NavPanelNative.tsx
│ │ ├── NestedApp
│ │ │ ├── AppWithCodeView.module.scss
│ │ │ ├── AppWithCodeView.tsx
│ │ │ ├── AppWithCodeViewNative.tsx
│ │ │ ├── defaultProps.tsx
│ │ │ ├── logo.svg
│ │ │ ├── NestedApp.module.scss
│ │ │ ├── NestedApp.tsx
│ │ │ ├── NestedAppNative.tsx
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.tsx
│ │ │ └── utils.ts
│ │ ├── NoResult
│ │ │ ├── NoResult.md
│ │ │ ├── NoResult.module.scss
│ │ │ ├── NoResult.spec.ts
│ │ │ ├── NoResult.tsx
│ │ │ └── NoResultNative.tsx
│ │ ├── NumberBox
│ │ │ ├── numberbox-abstractions.ts
│ │ │ ├── NumberBox.md
│ │ │ ├── NumberBox.module.scss
│ │ │ ├── NumberBox.spec.ts
│ │ │ ├── NumberBox.tsx
│ │ │ └── NumberBoxNative.tsx
│ │ ├── Option
│ │ │ ├── Option.md
│ │ │ ├── Option.spec.ts
│ │ │ ├── Option.tsx
│ │ │ ├── OptionNative.tsx
│ │ │ └── OptionTypeProvider.tsx
│ │ ├── PageMetaTitle
│ │ │ ├── PageMetaTilteNative.tsx
│ │ │ ├── PageMetaTitle.md
│ │ │ ├── PageMetaTitle.spec.ts
│ │ │ └── PageMetaTitle.tsx
│ │ ├── Pages
│ │ │ ├── Page.md
│ │ │ ├── Pages.md
│ │ │ ├── Pages.module.scss
│ │ │ ├── Pages.tsx
│ │ │ └── PagesNative.tsx
│ │ ├── Pagination
│ │ │ ├── Pagination.md
│ │ │ ├── Pagination.module.scss
│ │ │ ├── Pagination.spec.ts
│ │ │ ├── Pagination.tsx
│ │ │ └── PaginationNative.tsx
│ │ ├── PositionedContainer
│ │ │ ├── PositionedContainer.module.scss
│ │ │ ├── PositionedContainer.tsx
│ │ │ └── PositionedContainerNative.tsx
│ │ ├── ProfileMenu
│ │ │ ├── ProfileMenu.module.scss
│ │ │ └── ProfileMenu.tsx
│ │ ├── ProgressBar
│ │ │ ├── ProgressBar.md
│ │ │ ├── ProgressBar.module.scss
│ │ │ ├── ProgressBar.spec.ts
│ │ │ ├── ProgressBar.tsx
│ │ │ └── ProgressBarNative.tsx
│ │ ├── Queue
│ │ │ ├── Queue.md
│ │ │ ├── Queue.spec.ts
│ │ │ ├── Queue.tsx
│ │ │ ├── queueActions.ts
│ │ │ └── QueueNative.tsx
│ │ ├── RadioGroup
│ │ │ ├── RadioGroup.md
│ │ │ ├── RadioGroup.module.scss
│ │ │ ├── RadioGroup.spec.ts
│ │ │ ├── RadioGroup.tsx
│ │ │ ├── RadioGroupNative.tsx
│ │ │ ├── RadioItem.tsx
│ │ │ └── RadioItemNative.tsx
│ │ ├── RealTimeAdapter
│ │ │ ├── RealTimeAdapter.tsx
│ │ │ └── RealTimeAdapterNative.tsx
│ │ ├── Redirect
│ │ │ ├── Redirect.md
│ │ │ ├── Redirect.spec.ts
│ │ │ └── Redirect.tsx
│ │ ├── ResponsiveBar
│ │ │ ├── README.md
│ │ │ ├── ResponsiveBar.md
│ │ │ ├── ResponsiveBar.module.scss
│ │ │ ├── ResponsiveBar.spec.ts
│ │ │ ├── ResponsiveBar.tsx
│ │ │ └── ResponsiveBarNative.tsx
│ │ ├── Select
│ │ │ ├── HiddenOption.tsx
│ │ │ ├── OptionContext.ts
│ │ │ ├── Select.md
│ │ │ ├── Select.module.scss
│ │ │ ├── Select.spec.ts
│ │ │ ├── Select.tsx
│ │ │ ├── SelectContext.tsx
│ │ │ └── SelectNative.tsx
│ │ ├── SelectionStore
│ │ │ ├── SelectionStore.md
│ │ │ ├── SelectionStore.tsx
│ │ │ └── SelectionStoreNative.tsx
│ │ ├── Slider
│ │ │ ├── Slider.md
│ │ │ ├── Slider.module.scss
│ │ │ ├── Slider.spec.ts
│ │ │ ├── Slider.tsx
│ │ │ └── SliderNative.tsx
│ │ ├── Slot
│ │ │ ├── Slot.md
│ │ │ ├── Slot.spec.ts
│ │ │ └── Slot.ts
│ │ ├── SlotItem.tsx
│ │ ├── SpaceFiller
│ │ │ ├── SpaceFiller.md
│ │ │ ├── SpaceFiller.module.scss
│ │ │ ├── SpaceFiller.spec.ts
│ │ │ ├── SpaceFiller.tsx
│ │ │ └── SpaceFillerNative.tsx
│ │ ├── Spinner
│ │ │ ├── Spinner.md
│ │ │ ├── Spinner.module.scss
│ │ │ ├── Spinner.spec.ts
│ │ │ ├── Spinner.tsx
│ │ │ └── SpinnerNative.tsx
│ │ ├── Splitter
│ │ │ ├── HSplitter.md
│ │ │ ├── HSplitter.spec.ts
│ │ │ ├── Splitter.md
│ │ │ ├── Splitter.module.scss
│ │ │ ├── Splitter.spec.ts
│ │ │ ├── Splitter.tsx
│ │ │ ├── SplitterNative.tsx
│ │ │ ├── utils.ts
│ │ │ ├── VSplitter.md
│ │ │ └── VSplitter.spec.ts
│ │ ├── Stack
│ │ │ ├── CHStack.md
│ │ │ ├── CHStack.spec.ts
│ │ │ ├── CVStack.md
│ │ │ ├── CVStack.spec.ts
│ │ │ ├── HStack.md
│ │ │ ├── HStack.spec.ts
│ │ │ ├── Stack.md
│ │ │ ├── Stack.module.scss
│ │ │ ├── Stack.spec.ts
│ │ │ ├── Stack.tsx
│ │ │ ├── StackNative.tsx
│ │ │ ├── VStack.md
│ │ │ └── VStack.spec.ts
│ │ ├── StickyBox
│ │ │ ├── StickyBox.md
│ │ │ ├── StickyBox.module.scss
│ │ │ ├── StickyBox.tsx
│ │ │ └── StickyBoxNative.tsx
│ │ ├── Switch
│ │ │ ├── Switch.md
│ │ │ ├── Switch.spec.ts
│ │ │ └── Switch.tsx
│ │ ├── Table
│ │ │ ├── doc-resources
│ │ │ │ └── list-component-data.js
│ │ │ ├── react-table-config.d.ts
│ │ │ ├── Table.md
│ │ │ ├── Table.module.scss
│ │ │ ├── Table.spec.ts
│ │ │ ├── Table.tsx
│ │ │ ├── TableNative.tsx
│ │ │ └── useRowSelection.tsx
│ │ ├── TableOfContents
│ │ │ ├── TableOfContents.module.scss
│ │ │ ├── TableOfContents.spec.ts
│ │ │ ├── TableOfContents.tsx
│ │ │ └── TableOfContentsNative.tsx
│ │ ├── Tabs
│ │ │ ├── TabContext.tsx
│ │ │ ├── TabItem.md
│ │ │ ├── TabItem.tsx
│ │ │ ├── TabItemNative.tsx
│ │ │ ├── Tabs.md
│ │ │ ├── Tabs.module.scss
│ │ │ ├── Tabs.spec.ts
│ │ │ ├── Tabs.tsx
│ │ │ └── TabsNative.tsx
│ │ ├── Text
│ │ │ ├── Text.md
│ │ │ ├── Text.module.scss
│ │ │ ├── Text.spec.ts
│ │ │ ├── Text.tsx
│ │ │ └── TextNative.tsx
│ │ ├── TextArea
│ │ │ ├── TextArea.md
│ │ │ ├── TextArea.module.scss
│ │ │ ├── TextArea.spec.ts
│ │ │ ├── TextArea.tsx
│ │ │ ├── TextAreaNative.tsx
│ │ │ ├── TextAreaResizable.tsx
│ │ │ └── useComposedRef.ts
│ │ ├── TextBox
│ │ │ ├── TextBox.md
│ │ │ ├── TextBox.module.scss
│ │ │ ├── TextBox.spec.ts
│ │ │ ├── TextBox.tsx
│ │ │ └── TextBoxNative.tsx
│ │ ├── Theme
│ │ │ ├── NotificationToast.tsx
│ │ │ ├── Theme.md
│ │ │ ├── Theme.module.scss
│ │ │ ├── Theme.spec.ts
│ │ │ ├── Theme.tsx
│ │ │ └── ThemeNative.tsx
│ │ ├── TimeInput
│ │ │ ├── TimeInput.md
│ │ │ ├── TimeInput.module.scss
│ │ │ ├── TimeInput.spec.ts
│ │ │ ├── TimeInput.tsx
│ │ │ ├── TimeInputNative.tsx
│ │ │ └── utils.ts
│ │ ├── Timer
│ │ │ ├── Timer.md
│ │ │ ├── Timer.spec.ts
│ │ │ ├── Timer.tsx
│ │ │ └── TimerNative.tsx
│ │ ├── Toggle
│ │ │ ├── Toggle.module.scss
│ │ │ └── Toggle.tsx
│ │ ├── ToneChangerButton
│ │ │ ├── ToneChangerButton.md
│ │ │ ├── ToneChangerButton.spec.ts
│ │ │ └── ToneChangerButton.tsx
│ │ ├── ToneSwitch
│ │ │ ├── ToneSwitch.md
│ │ │ ├── ToneSwitch.module.scss
│ │ │ ├── ToneSwitch.spec.ts
│ │ │ ├── ToneSwitch.tsx
│ │ │ └── ToneSwitchNative.tsx
│ │ ├── Tooltip
│ │ │ ├── Tooltip.md
│ │ │ ├── Tooltip.module.scss
│ │ │ ├── Tooltip.spec.ts
│ │ │ ├── Tooltip.tsx
│ │ │ └── TooltipNative.tsx
│ │ ├── Tree
│ │ │ ├── testData.ts
│ │ │ ├── Tree-dynamic.spec.ts
│ │ │ ├── Tree-icons.spec.ts
│ │ │ ├── Tree.md
│ │ │ ├── Tree.spec.ts
│ │ │ ├── TreeComponent.module.scss
│ │ │ ├── TreeComponent.tsx
│ │ │ └── TreeNative.tsx
│ │ ├── TreeDisplay
│ │ │ ├── TreeDisplay.md
│ │ │ ├── TreeDisplay.module.scss
│ │ │ ├── TreeDisplay.tsx
│ │ │ └── TreeDisplayNative.tsx
│ │ ├── ValidationSummary
│ │ │ ├── ValidationSummary.module.scss
│ │ │ └── ValidationSummary.tsx
│ │ └── VisuallyHidden.tsx
│ ├── components-core
│ │ ├── abstractions
│ │ │ ├── ComponentRenderer.ts
│ │ │ ├── LoaderRenderer.ts
│ │ │ ├── standalone.ts
│ │ │ └── treeAbstractions.ts
│ │ ├── action
│ │ │ ├── actions.ts
│ │ │ ├── APICall.tsx
│ │ │ ├── FileDownloadAction.tsx
│ │ │ ├── FileUploadAction.tsx
│ │ │ ├── NavigateAction.tsx
│ │ │ └── TimedAction.tsx
│ │ ├── ApiBoundComponent.tsx
│ │ ├── appContext
│ │ │ ├── date-functions.ts
│ │ │ ├── math-function.ts
│ │ │ └── misc-utils.ts
│ │ ├── AppContext.tsx
│ │ ├── behaviors
│ │ │ ├── Behavior.tsx
│ │ │ └── CoreBehaviors.tsx
│ │ ├── component-hooks.ts
│ │ ├── ComponentDecorator.tsx
│ │ ├── ComponentViewer.tsx
│ │ ├── CompoundComponent.tsx
│ │ ├── constants.ts
│ │ ├── DebugViewProvider.tsx
│ │ ├── descriptorHelper.ts
│ │ ├── devtools
│ │ │ ├── InspectorDialog.module.scss
│ │ │ ├── InspectorDialog.tsx
│ │ │ └── InspectorDialogVisibilityContext.tsx
│ │ ├── EngineError.ts
│ │ ├── event-handlers.ts
│ │ ├── InspectorButton.module.scss
│ │ ├── InspectorContext.tsx
│ │ ├── interception
│ │ │ ├── abstractions.ts
│ │ │ ├── ApiInterceptor.ts
│ │ │ ├── ApiInterceptorProvider.tsx
│ │ │ ├── apiInterceptorWorker.ts
│ │ │ ├── Backend.ts
│ │ │ ├── Errors.ts
│ │ │ ├── IndexedDb.ts
│ │ │ ├── initMock.ts
│ │ │ ├── InMemoryDb.ts
│ │ │ ├── ReadonlyCollection.ts
│ │ │ └── useApiInterceptorContext.tsx
│ │ ├── loader
│ │ │ ├── ApiLoader.tsx
│ │ │ ├── DataLoader.tsx
│ │ │ ├── ExternalDataLoader.tsx
│ │ │ ├── Loader.tsx
│ │ │ ├── MockLoaderRenderer.tsx
│ │ │ └── PageableLoader.tsx
│ │ ├── LoaderComponent.tsx
│ │ ├── markup-check.ts
│ │ ├── parts.ts
│ │ ├── renderers.ts
│ │ ├── rendering
│ │ │ ├── AppContent.tsx
│ │ │ ├── AppRoot.tsx
│ │ │ ├── AppWrapper.tsx
│ │ │ ├── buildProxy.ts
│ │ │ ├── collectFnVarDeps.ts
│ │ │ ├── ComponentAdapter.tsx
│ │ │ ├── ComponentWrapper.tsx
│ │ │ ├── Container.tsx
│ │ │ ├── containers.ts
│ │ │ ├── ContainerWrapper.tsx
│ │ │ ├── ErrorBoundary.module.scss
│ │ │ ├── ErrorBoundary.tsx
│ │ │ ├── InvalidComponent.module.scss
│ │ │ ├── InvalidComponent.tsx
│ │ │ ├── nodeUtils.ts
│ │ │ ├── reducer.ts
│ │ │ ├── renderChild.tsx
│ │ │ ├── StandaloneComponent.tsx
│ │ │ ├── StateContainer.tsx
│ │ │ ├── UnknownComponent.module.scss
│ │ │ ├── UnknownComponent.tsx
│ │ │ └── valueExtractor.ts
│ │ ├── reportEngineError.ts
│ │ ├── RestApiProxy.ts
│ │ ├── script-runner
│ │ │ ├── asyncProxy.ts
│ │ │ ├── AttributeValueParser.ts
│ │ │ ├── bannedFunctions.ts
│ │ │ ├── BindingTreeEvaluationContext.ts
│ │ │ ├── eval-tree-async.ts
│ │ │ ├── eval-tree-common.ts
│ │ │ ├── eval-tree-sync.ts
│ │ │ ├── ParameterParser.ts
│ │ │ ├── process-statement-async.ts
│ │ │ ├── process-statement-common.ts
│ │ │ ├── process-statement-sync.ts
│ │ │ ├── ScriptingSourceTree.ts
│ │ │ ├── simplify-expression.ts
│ │ │ ├── statement-queue.ts
│ │ │ └── visitors.ts
│ │ ├── StandaloneApp.tsx
│ │ ├── StandaloneExtensionManager.ts
│ │ ├── TableOfContentsContext.tsx
│ │ ├── theming
│ │ │ ├── _themes.scss
│ │ │ ├── component-layout-resolver.ts
│ │ │ ├── extendThemeUtils.ts
│ │ │ ├── hvar.ts
│ │ │ ├── layout-resolver.ts
│ │ │ ├── parse-layout-props.ts
│ │ │ ├── StyleContext.tsx
│ │ │ ├── StyleRegistry.ts
│ │ │ ├── ThemeContext.tsx
│ │ │ ├── ThemeProvider.tsx
│ │ │ ├── themes
│ │ │ │ ├── base-utils.ts
│ │ │ │ ├── palette.ts
│ │ │ │ ├── root.ts
│ │ │ │ ├── solid.ts
│ │ │ │ ├── theme-colors.ts
│ │ │ │ └── xmlui.ts
│ │ │ ├── themeVars.module.scss
│ │ │ ├── themeVars.ts
│ │ │ ├── transformThemeVars.ts
│ │ │ └── utils.ts
│ │ ├── utils
│ │ │ ├── actionUtils.ts
│ │ │ ├── audio-utils.ts
│ │ │ ├── base64-utils.ts
│ │ │ ├── compound-utils.ts
│ │ │ ├── css-utils.ts
│ │ │ ├── DataLoaderQueryKeyGenerator.ts
│ │ │ ├── date-utils.ts
│ │ │ ├── extractParam.ts
│ │ │ ├── hooks.tsx
│ │ │ ├── LruCache.ts
│ │ │ ├── mergeProps.ts
│ │ │ ├── misc.ts
│ │ │ ├── request-params.ts
│ │ │ ├── statementUtils.ts
│ │ │ └── treeUtils.ts
│ │ └── xmlui-parser.ts
│ ├── index-standalone.ts
│ ├── index.scss
│ ├── index.ts
│ ├── language-server
│ │ ├── server-common.ts
│ │ ├── server-web-worker.ts
│ │ ├── server.ts
│ │ ├── services
│ │ │ ├── common
│ │ │ │ ├── docs-generation.ts
│ │ │ │ ├── lsp-utils.ts
│ │ │ │ ├── metadata-utils.ts
│ │ │ │ └── syntax-node-utilities.ts
│ │ │ ├── completion.ts
│ │ │ ├── diagnostic.ts
│ │ │ ├── format.ts
│ │ │ └── hover.ts
│ │ └── xmlui-metadata-generated.js
│ ├── logging
│ │ ├── LoggerContext.tsx
│ │ ├── LoggerInitializer.tsx
│ │ ├── LoggerService.ts
│ │ └── xmlui.ts
│ ├── logo.svg
│ ├── parsers
│ │ ├── common
│ │ │ ├── GenericToken.ts
│ │ │ ├── InputStream.ts
│ │ │ └── utils.ts
│ │ ├── scripting
│ │ │ ├── code-behind-collect.ts
│ │ │ ├── Lexer.ts
│ │ │ ├── modules.ts
│ │ │ ├── Parser.ts
│ │ │ ├── ParserError.ts
│ │ │ ├── ScriptingNodeTypes.ts
│ │ │ ├── TokenTrait.ts
│ │ │ ├── TokenType.ts
│ │ │ └── tree-visitor.ts
│ │ ├── style-parser
│ │ │ ├── errors.ts
│ │ │ ├── source-tree.ts
│ │ │ ├── StyleInputStream.ts
│ │ │ ├── StyleLexer.ts
│ │ │ ├── StyleParser.ts
│ │ │ └── tokens.ts
│ │ └── xmlui-parser
│ │ ├── CharacterCodes.ts
│ │ ├── diagnostics.ts
│ │ ├── fileExtensions.ts
│ │ ├── index.ts
│ │ ├── lint.ts
│ │ ├── parser.ts
│ │ ├── ParserError.ts
│ │ ├── scanner.ts
│ │ ├── syntax-kind.ts
│ │ ├── syntax-node.ts
│ │ ├── transform.ts
│ │ ├── utils.ts
│ │ ├── xmlui-serializer.ts
│ │ └── xmlui-tree.ts
│ ├── react-app-env.d.ts
│ ├── syntax
│ │ ├── monaco
│ │ │ ├── grammar.monacoLanguage.ts
│ │ │ ├── index.ts
│ │ │ ├── xmlui-dark.ts
│ │ │ ├── xmlui-light.ts
│ │ │ └── xmluiscript.monacoLanguage.ts
│ │ └── textMate
│ │ ├── index.ts
│ │ ├── xmlui-dark.json
│ │ ├── xmlui-light.json
│ │ ├── xmlui.json
│ │ └── xmlui.tmLanguage.json
│ ├── testing
│ │ ├── assertions.ts
│ │ ├── component-test-helpers.ts
│ │ ├── ComponentDrivers.ts
│ │ ├── drivers
│ │ │ ├── DateInputDriver.ts
│ │ │ ├── index.ts
│ │ │ ├── ModalDialogDriver.ts
│ │ │ ├── NumberBoxDriver.ts
│ │ │ ├── TextBoxDriver.ts
│ │ │ ├── TimeInputDriver.ts
│ │ │ ├── TimerDriver.ts
│ │ │ └── TreeDriver.ts
│ │ ├── fixtures.ts
│ │ ├── index.ts
│ │ ├── infrastructure
│ │ │ ├── index.html
│ │ │ ├── main.tsx
│ │ │ ├── public
│ │ │ │ ├── mockServiceWorker.js
│ │ │ │ ├── resources
│ │ │ │ │ ├── bell.svg
│ │ │ │ │ ├── box.svg
│ │ │ │ │ ├── doc.svg
│ │ │ │ │ ├── eye.svg
│ │ │ │ │ ├── flower-640x480.jpg
│ │ │ │ │ ├── sun.svg
│ │ │ │ │ ├── test-image-100x100.jpg
│ │ │ │ │ └── txt.svg
│ │ │ │ └── serve.json
│ │ │ └── TestBed.tsx
│ │ └── themed-app-test-helpers.ts
│ └── vite-env.d.ts
├── tests
│ ├── components
│ │ ├── CodeBlock
│ │ │ └── hightlight-code.test.ts
│ │ ├── playground-pattern.test.ts
│ │ └── Tree
│ │ └── Tree-states.test.ts
│ ├── components-core
│ │ ├── abstractions
│ │ │ └── treeAbstractions.test.ts
│ │ ├── container
│ │ │ └── buildProxy.test.ts
│ │ ├── interception
│ │ │ ├── orderBy.test.ts
│ │ │ ├── ReadOnlyCollection.test.ts
│ │ │ └── request-param-converter.test.ts
│ │ ├── scripts-runner
│ │ │ ├── AttributeValueParser.test.ts
│ │ │ ├── eval-tree-arrow-async.test.ts
│ │ │ ├── eval-tree-arrow.test.ts
│ │ │ ├── eval-tree-func-decl-async.test.ts
│ │ │ ├── eval-tree-func-decl.test.ts
│ │ │ ├── eval-tree-pre-post.test.ts
│ │ │ ├── eval-tree-regression.test.ts
│ │ │ ├── eval-tree.test.ts
│ │ │ ├── function-proxy.test.ts
│ │ │ ├── parser-regression.test.ts
│ │ │ ├── process-event.test.ts
│ │ │ ├── process-function.test.ts
│ │ │ ├── process-implicit-context.test.ts
│ │ │ ├── process-statement-asgn.test.ts
│ │ │ ├── process-statement-destruct.test.ts
│ │ │ ├── process-statement-regs.test.ts
│ │ │ ├── process-statement-sync.test.ts
│ │ │ ├── process-statement.test.ts
│ │ │ ├── process-switch-sync.test.ts
│ │ │ ├── process-switch.test.ts
│ │ │ ├── process-try-sync.test.ts
│ │ │ ├── process-try.test.ts
│ │ │ └── test-helpers.ts
│ │ ├── test-metadata-handler.ts
│ │ ├── theming
│ │ │ ├── border-segments.test.ts
│ │ │ ├── component-layout.resolver.test.ts
│ │ │ ├── layout-property-parser.test.ts
│ │ │ ├── layout-resolver.test.ts
│ │ │ ├── layout-resolver2.test.ts
│ │ │ ├── layout-vp-override.test.ts
│ │ │ └── padding-segments.test.ts
│ │ └── utils
│ │ ├── date-utils.test.ts
│ │ ├── format-human-elapsed-time.test.ts
│ │ └── LruCache.test.ts
│ ├── language-server
│ │ ├── completion.test.ts
│ │ ├── format.test.ts
│ │ ├── hover.test.ts
│ │ └── mockData.ts
│ └── parsers
│ ├── common
│ │ └── input-stream.test.ts
│ ├── markdown
│ │ └── parse-binding-expression.test.ts
│ ├── parameter-parser.test.ts
│ ├── paremeter-parser.test.ts
│ ├── scripting
│ │ ├── eval-tree-arrow.test.ts
│ │ ├── eval-tree-pre-post.test.ts
│ │ ├── eval-tree.test.ts
│ │ ├── function-proxy.test.ts
│ │ ├── lexer-literals.test.ts
│ │ ├── lexer-misc.test.ts
│ │ ├── module-parse.test.ts
│ │ ├── parser-arrow.test.ts
│ │ ├── parser-assignments.test.ts
│ │ ├── parser-binary.test.ts
│ │ ├── parser-destructuring.test.ts
│ │ ├── parser-errors.test.ts
│ │ ├── parser-expressions.test.ts
│ │ ├── parser-function.test.ts
│ │ ├── parser-literals.test.ts
│ │ ├── parser-primary.test.ts
│ │ ├── parser-regex.test.ts
│ │ ├── parser-statements.test.ts
│ │ ├── parser-unary.test.ts
│ │ ├── process-event.test.ts
│ │ ├── process-implicit-context.test.ts
│ │ ├── process-statement-asgn.test.ts
│ │ ├── process-statement-destruct.test.ts
│ │ ├── process-statement-regs.test.ts
│ │ ├── process-statement-sync.test.ts
│ │ ├── process-statement.test.ts
│ │ ├── process-switch-sync.test.ts
│ │ ├── process-switch.test.ts
│ │ ├── process-try-sync.test.ts
│ │ ├── process-try.test.ts
│ │ ├── simplify-expression.test.ts
│ │ ├── statement-hooks.test.ts
│ │ └── test-helpers.ts
│ ├── style-parser
│ │ ├── generateHvarChain.test.ts
│ │ ├── parseHVar.test.ts
│ │ ├── parser.test.ts
│ │ └── tokens.test.ts
│ └── xmlui
│ ├── lint.test.ts
│ ├── parser.test.ts
│ ├── scanner.test.ts
│ ├── transform.attr.test.ts
│ ├── transform.circular.test.ts
│ ├── transform.element.test.ts
│ ├── transform.errors.test.ts
│ ├── transform.escape.test.ts
│ ├── transform.regression.test.ts
│ ├── transform.script.test.ts
│ ├── transform.test.ts
│ └── xmlui.ts
├── tests-e2e
│ ├── api-bound-component-regression.spec.ts
│ ├── api-call-as-extracted-component.spec.ts
│ ├── assign-to-object-or-array-regression.spec.ts
│ ├── binding-regression.spec.ts
│ ├── children-as-template-context-vars.spec.ts
│ ├── compound-component.spec.ts
│ ├── context-vars-regression.spec.ts
│ ├── data-bindings.spec.ts
│ ├── datasource-and-api-usage-in-var.spec.ts
│ ├── datasource-direct-binding.spec.ts
│ ├── datasource-onLoaded-regression.spec.ts
│ ├── modify-array-item-regression.spec.ts
│ ├── namespaces.spec.ts
│ ├── push-to-array-regression.spec.ts
│ ├── screen-breakpoints.spec.ts
│ ├── scripting.spec.ts
│ ├── state-scope-in-pages.spec.ts
│ └── state-var-scopes.spec.ts
├── tsconfig.bin.json
├── tsconfig.json
├── tsconfig.node.json
├── vite.config.ts
└── vitest.config.ts
```
# Files
--------------------------------------------------------------------------------
/xmlui/src/components/Heading/Heading.spec.ts:
--------------------------------------------------------------------------------
```typescript
1 | import { getBounds } from "../../testing/component-test-helpers";
2 | import { expect, test } from "../../testing/fixtures";
3 | import { headingLevels } from "./abstractions";
4 |
5 | test.describe("smoke tests", { tag: "@smoke" }, () => {
6 | test("Heading is rendered", async ({ initTestBed, createHeadingDriver }) => {
7 | await initTestBed(`<Heading />`);
8 | const driver = await createHeadingDriver();
9 | await expect(driver.component).toBeAttached();
10 | });
11 |
12 | headingLevels.forEach((htmlElement) => {
13 | test(`HtmlTag '${htmlElement}' is rendered`, async ({ initTestBed, createHeadingDriver }) => {
14 | await initTestBed(`<${htmlElement} />`);
15 | const driver = await createHeadingDriver();
16 | await expect(driver.component).toBeAttached();
17 | });
18 | });
19 |
20 | // --- value
21 |
22 | // correct types: string, undefined, null, number, boolean -> everything will be coerced to strings
23 | [
24 | { label: "undefined", value: "'{undefined}'", toExpect: "" },
25 | { label: "null", value: "'{null}'", toExpect: "" },
26 | { label: "empty string", value: "''", toExpect: "" },
27 | { label: "string", value: "'test'", toExpect: "test" },
28 | { label: "integer", value: "'{1}'", toExpect: "1" },
29 | { label: "float", value: "'{1.2}'", toExpect: "1.2" },
30 | { label: "boolean", value: "'{true}'", toExpect: "true" },
31 | { label: "empty object", value: "'{{}}'", toExpect: {}.toString() },
32 | { label: "object", value: "\"{{ a: 1, b: 'hi' }}\"", toExpect: { a: 1, b: "hi" }.toString() },
33 | { label: "empty array", value: "'{[]}'", toExpect: "" },
34 | { label: "array", value: "'{[1, 2, 3]}'", toExpect: [1, 2, 3].toString() },
35 | ].forEach(({ label, value, toExpect }) => {
36 | test(`setting value to ${label} sets value of field`, async ({
37 | initTestBed,
38 | createHeadingDriver,
39 | }) => {
40 | await initTestBed(`<Heading value=${value} />`);
41 | const driver = await createHeadingDriver();
42 |
43 | await expect(driver.component).toHaveText(toExpect);
44 | });
45 | });
46 |
47 | test("setting value prop has no whitespace collapsing", async ({
48 | initTestBed,
49 | createHeadingDriver,
50 | }) => {
51 | const expected = "test content";
52 | await initTestBed(`<Heading value="${expected}" />`);
53 | const driver = await createHeadingDriver();
54 |
55 | await expect(driver.component).toHaveText(expected);
56 | });
57 |
58 | test("child overrides value", async ({ initTestBed, createHeadingDriver }) => {
59 | const expected = "this test text is the value of the heading";
60 | await initTestBed(`
61 | <Heading value="${expected}">
62 | This is a child
63 | </Heading>
64 | `);
65 | const driver = await createHeadingDriver();
66 |
67 | await expect(driver.component).toHaveText(expected);
68 | });
69 |
70 | // --- comparisons
71 |
72 | async function sizeComparisonSetup(initTestBed: any, createHeadingDriver: any) {
73 | await initTestBed(`
74 | <Fragment>
75 | <Heading level="h1" testId="heading1">Test</Heading>
76 | <Heading level="h2" testId="heading2">Test</Heading>
77 | <Heading level="h3" testId="heading3">Test</Heading>
78 | <Heading level="h4" testId="heading4">Test</Heading>
79 | <Heading level="h5" testId="heading5">Test</Heading>
80 | <Heading level="h6" testId="heading6">Test</Heading>
81 | </Fragment>
82 | `);
83 | const headings = [
84 | await createHeadingDriver("heading1"),
85 | await createHeadingDriver("heading2"),
86 | await createHeadingDriver("heading3"),
87 | await createHeadingDriver("heading4"),
88 | await createHeadingDriver("heading5"),
89 | await createHeadingDriver("heading6"),
90 | ];
91 |
92 | const headingSizes = await Promise.all(
93 | headings.map(async (heading) => {
94 | const { width, height } = await getBounds(heading);
95 | return { width, height };
96 | }),
97 | );
98 |
99 | return headingSizes;
100 | }
101 | // NOTE: we don't explicitly test h6, since all other headings have tested for its size
102 | headingLevels
103 | .filter((l) => l !== "h6")
104 | .forEach((level, idx) => {
105 | test(`compare ${level} size to other levels`, async ({
106 | initTestBed,
107 | createHeadingDriver,
108 | }) => {
109 | const headingSizes = await sizeComparisonSetup(initTestBed, createHeadingDriver);
110 |
111 | for (let i = idx + 1; i < headingSizes.length; i++) {
112 | /* console.log(
113 | `${level} width: ${headingSizes[idx].width} and height: ${headingSizes[idx].height}`,
114 | );
115 | console.log(
116 | `compared to h${i + 1} width: ${headingSizes[i].width} and height: ${headingSizes[i].height}`,
117 | ); */
118 | expect(headingSizes[idx].width).toBeGreaterThanOrEqual(headingSizes[i].width);
119 | expect(headingSizes[idx].height).toBeGreaterThanOrEqual(headingSizes[i].height);
120 | }
121 | });
122 | });
123 |
124 | [
125 | { label: "H1 is the same as Heading level='h1'", specializedComp: "H1", level: "h1" },
126 | { label: "H2 is the same as Heading level='h2'", specializedComp: "H2", level: "h2" },
127 | { label: "H3 is the same as Heading level='h3'", specializedComp: "H3", level: "h3" },
128 | { label: "H4 is the same as Heading level='h4'", specializedComp: "H4", level: "h4" },
129 | { label: "H5 is the same as Heading level='h5'", specializedComp: "H5", level: "h5" },
130 | { label: "H6 is the same as Heading level='h6'", specializedComp: "H6", level: "h6" },
131 | ].forEach(({ label, specializedComp, level }) => {
132 | const textContent = "Content";
133 | test(label, async ({ initTestBed, createHeadingDriver }) => {
134 | await initTestBed(`
135 | <Fragment>
136 | <Heading testId="generic" level="${level}">${textContent}</Heading>
137 | <${specializedComp} testId="specialized">${textContent}</${specializedComp}>
138 | </Fragment>
139 | `);
140 | const generic = await createHeadingDriver("generic");
141 | const specialized = await createHeadingDriver("specialized");
142 |
143 | const genericTagName = await generic.getComponentTagName();
144 | const specializedTagName = await specialized.getComponentTagName();
145 |
146 | expect(genericTagName).toEqual(specializedTagName);
147 | await expect(generic.component).toHaveText(textContent);
148 | await expect(specialized.component).toHaveText(textContent);
149 | });
150 | });
151 |
152 | // --- maxLines
153 |
154 | test('maxLines="2" cuts off long text', async ({ initTestBed, createHeadingDriver }) => {
155 | await initTestBed(`
156 | <Fragment>
157 | <Heading testId="headingShort" width="200px">Short</Heading>
158 | <Heading testId="headingLong" width="200px" maxLines="2">
159 | Though this long text does not fit into a single line, please do not break it!
160 | </Heading>
161 | </Fragment>
162 | `);
163 | const shortHeading = await createHeadingDriver("headingShort");
164 | const longHeading = await createHeadingDriver("headingLong");
165 |
166 | const { height: heightHeadingShort } = await getBounds(shortHeading);
167 | const { height: heightHeadingLong } = await getBounds(longHeading);
168 |
169 | expect(heightHeadingLong).toEqual(heightHeadingShort * 2);
170 | });
171 |
172 | // --- preserveLinebreaks
173 |
174 | test("preserve line breaks", async ({ initTestBed, createHeadingDriver }) => {
175 | await initTestBed(`
176 | <Fragment>
177 | <Heading testId="headingShort">Short</Heading>
178 | <Heading testId="headingLong" preserveLinebreaks="true"
179 | value="Though this long
180 | text does not fit into a single line,
181 | please do not break it!"
182 | />
183 | </Fragment>
184 | `);
185 | const { height: heightHeadingShort } = await getBounds(
186 | await createHeadingDriver("headingShort"),
187 | );
188 | const { height: heightHeadingLong } = await getBounds(await createHeadingDriver("headingLong"));
189 |
190 | expect(heightHeadingLong).toEqualWithTolerance(heightHeadingShort * 3, 0.01);
191 | });
192 |
193 | // --- ellipses
194 |
195 | test("ellipses in long text", async ({ initTestBed, createHeadingDriver }) => {
196 | await initTestBed(`
197 | <Fragment>
198 | <Heading testId="headingShort" width="200">Short</Heading>
199 | <Heading testId="headingLong" width="200" maxLines="1">
200 | Though this long text does not fit into a single line, please do not break it!
201 | </Heading>
202 | </Fragment>
203 | `);
204 | const shortTextDriver = await createHeadingDriver("headingShort");
205 | const longTextDriver = await createHeadingDriver("headingLong");
206 |
207 | const { height: heightHeadingShort } = await getBounds(shortTextDriver);
208 | const { height: heightHeadingLong } = await getBounds(longTextDriver);
209 |
210 | expect(heightHeadingShort).toEqual(heightHeadingLong);
211 | await expect(longTextDriver.component).toHaveCSS("text-overflow", "ellipsis");
212 | });
213 |
214 | test("no ellipses long text", async ({ initTestBed, createHeadingDriver }) => {
215 | await initTestBed(`
216 | <Fragment>
217 | <Heading testId="headingShort" width="200">Short</Heading>
218 | <Heading testId="headingLong" width="200" maxLines="1" ellipses="false">
219 | Though this long text does not fit into a single line, please do not break it!
220 | </Heading>
221 | </Fragment>
222 | `);
223 | const shortTextDriver = await createHeadingDriver("headingShort");
224 | const longTextDriver = await createHeadingDriver("headingLong");
225 |
226 | const { height: heightHeadingShort } = await getBounds(shortTextDriver);
227 | const { height: heightHeadingLong } = await getBounds(longTextDriver);
228 |
229 | expect(heightHeadingShort).toEqual(heightHeadingLong);
230 | await expect(longTextDriver.component).not.toHaveCSS("text-overflow", "ellipsis");
231 | });
232 |
233 | // --- implicit text
234 |
235 | test("nested text whitespace collapsing", async ({ initTestBed, createHeadingDriver }) => {
236 | await initTestBed(`
237 | <Heading>
238 | test content
239 | here
240 | </Heading>
241 | `);
242 | const driver = await createHeadingDriver();
243 |
244 | await expect(driver.component).toHaveText("test content here");
245 | });
246 | });
247 |
248 | // --- Other Tests
249 |
250 | // --- formatting
251 |
252 | test("non-breaking space", async ({ initTestBed, createHeadingDriver }) => {
253 | const content = "4 spaces here [ ], &nbsp; written out.";
254 | const expected = "4 spaces here [ ], written out.";
255 |
256 | await initTestBed(`<Heading>${content}</Heading>`);
257 | const driver = await createHeadingDriver();
258 |
259 | await expect(driver.component).toHaveText(expected);
260 | });
261 |
262 | test("break long text", async ({ initTestBed, createHeadingDriver }) => {
263 | await initTestBed(`
264 | <Fragment>
265 | <Heading testId="headingShort" width="200px">Short</Heading>
266 | <Heading testId="headingLong" width="200px">
267 | This long text does not fit into a viewport with a 200-pixel width.
268 | </Heading>
269 | </Fragment>
270 | `);
271 | const shortHeading = await createHeadingDriver("headingShort");
272 | const longHeading = await createHeadingDriver("headingLong");
273 |
274 | await expect(longHeading.component).toBeVisible();
275 |
276 | const { height: heightHeadingShort } = await getBounds(shortHeading);
277 | const { height: heightHeadingLong } = await getBounds(longHeading);
278 |
279 | expect(heightHeadingShort).toBeLessThan(heightHeadingLong);
280 | });
281 |
282 | // --- inside layout
283 |
284 | test("Heading is inline in HStack", async ({
285 | initTestBed,
286 | createHeadingDriver,
287 | createIconDriver,
288 | }) => {
289 | await initTestBed(`
290 | <HStack>
291 | <Heading testId="heading0" >Show me a trash</Heading>
292 | <Icon testId="icon0" name="trash"/>
293 | <Heading testId="heading1" >icon!</Heading>
294 | </HStack>
295 | `);
296 | const { top: topHeading0 } = await getBounds(await createHeadingDriver("heading0"));
297 | const { top: topIcon0 } = await getBounds(await createIconDriver("icon0"));
298 | const { top: topHeading1 } = await getBounds(await createHeadingDriver("heading1"));
299 |
300 | expect(topHeading0).toEqual(topIcon0);
301 | expect(topIcon0).toEqual(topHeading1);
302 | });
303 |
304 | test("Heading is block in VStack", async ({
305 | initTestBed,
306 | createHeadingDriver,
307 | createIconDriver,
308 | }) => {
309 | await initTestBed(`
310 | <VStack>
311 | <Heading testId="heading0" >Show me a trash</Heading>
312 | <Icon testId="icon0" name="trash"/>
313 | <Heading testId="heading1" >icon!</Heading>
314 | </VStack>
315 | `);
316 | const { top: topHeading0 } = await getBounds(await createHeadingDriver("heading0"));
317 | const { top: topIcon0 } = await getBounds((await createIconDriver("icon0")).svgIcon);
318 | const { top: topHeading1 } = await getBounds(await createHeadingDriver("heading1"));
319 |
320 | expect(topHeading0).toBeLessThan(topIcon0);
321 | expect(topIcon0).toBeLessThan(topHeading1);
322 | });
323 |
324 | test("Heading overflows container dimensions", async ({
325 | initTestBed,
326 | createVStackDriver,
327 | createHeadingDriver,
328 | }) => {
329 | const widthLayoutExpected = 300;
330 | const widthHeadingExpected = 400;
331 | await initTestBed(`
332 | <VStack height="40" width="${widthLayoutExpected}px" border="1px solid red">
333 | <Heading testId="heading" width="${widthHeadingExpected}px">
334 | This text sets its size explicitly bigger than its container.
335 | As it does not fit into the container's viewport, it overflows.
336 | </Heading>
337 | </VStack>
338 | `);
339 | const { width: widthLayout } = await getBounds(await createVStackDriver());
340 | const { width: widthHeading } = await getBounds(await createHeadingDriver("heading"));
341 |
342 | expect(widthHeading).toEqual(widthHeadingExpected);
343 | expect(widthLayout).toEqual(widthLayoutExpected);
344 | });
345 |
346 | test("Heading accepts custom props", async ({ initTestBed, createHeadingDriver }) => {
347 | await initTestBed(`<Heading custom="test" boolean>Test Heading</Heading>`);
348 | const headingDriver = await createHeadingDriver();
349 |
350 | await expect(headingDriver.component).toHaveAttribute("custom", "test");
351 | await expect(headingDriver.component).toHaveAttribute("boolean", "true");
352 | });
353 |
354 | headingLevels.forEach((level) => {
355 | test(`HtmlTag '${level}' accepts custom props`, async ({ initTestBed, createHeadingDriver }) => {
356 | await initTestBed(
357 | `<${level.toLowerCase()} custom="test" boolean>Test Heading</${level.toLowerCase()}>`,
358 | );
359 | const headingDriver = await createHeadingDriver();
360 |
361 | await expect(headingDriver.component).toHaveAttribute("custom", "test");
362 | await expect(headingDriver.component).toHaveAttribute("boolean", "true");
363 | });
364 | });
365 |
366 | // =============================================================================
367 | // COMPREHENSIVE END-TO-END TESTS (Following XMLUI Testing Conventions)
368 | // =============================================================================
369 |
370 | // =============================================================================
371 | // BASIC FUNCTIONALITY TESTS
372 | // =============================================================================
373 |
374 | test.describe("Basic Functionality", () => {
375 | test("component renders with basic props", async ({ initTestBed, page, createHeadingDriver }) => {
376 | await initTestBed(`<Heading>Test Heading</Heading>`);
377 | const driver = await createHeadingDriver();
378 | await expect(driver.component).toBeVisible();
379 | await expect(driver.component).toHaveText("Test Heading");
380 | });
381 |
382 | ["h1", "h2", "h3", "h4", "h5", "h6"].forEach((lvl) => {
383 | test(`component renders with ${lvl} level`, async ({ initTestBed, createHeadingDriver }) => {
384 | await initTestBed(`<Heading level="${lvl}">Level ${lvl}</Heading>`);
385 | const driver = await createHeadingDriver();
386 | await expect(driver.component).toBeVisible();
387 | const tagName = await driver.getComponentTagName();
388 | expect(tagName.toLowerCase()).toBe(lvl);
389 | });
390 | });
391 |
392 | ["H1", "H2", "H3", "H4", "H5", "H6"].forEach((c) => {
393 | test(`specialized ${c} components renders content`, async ({
394 | initTestBed,
395 | createHeadingDriver,
396 | }) => {
397 | await initTestBed(`<${c}>Specialized ${c}</${c}>`);
398 | const driver = await createHeadingDriver();
399 | await expect(driver.component).toBeVisible();
400 | await expect(driver.component).toHaveText(`Specialized ${c}`);
401 | });
402 | });
403 | test("component handles value prop", async ({ initTestBed, createHeadingDriver }) => {
404 | await initTestBed(`<Heading value="Value prop text" />`);
405 | const driver = await createHeadingDriver();
406 | await expect(driver.component).toHaveText("Value prop text");
407 | });
408 |
409 | test("component handles child content", async ({ initTestBed, createHeadingDriver }) => {
410 | await initTestBed(`<Heading>Child content text</Heading>`);
411 | const driver = await createHeadingDriver();
412 | await expect(driver.component).toHaveText("Child content text");
413 | });
414 |
415 | test.describe("level property accepts numeric values", () => {
416 | [1, 2, 3, 4, 5, 6].forEach((level) => {
417 | test(`level="{${level}}" renders as h${level}`, async ({ initTestBed, createHeadingDriver }) => {
418 | await initTestBed(`<Heading level="{${level}}">Numeric Level ${level}</Heading>`);
419 | const driver = await createHeadingDriver();
420 | await expect(driver.component).toBeVisible();
421 | const tagName = await driver.getComponentTagName();
422 | expect(tagName.toLowerCase()).toBe(`h${level}`);
423 | await expect(driver.component).toHaveText(`Numeric Level ${level}`);
424 | });
425 | });
426 | });
427 |
428 | test.describe("level property accepts string numeric values", () => {
429 | ["1", "2", "3", "4", "5", "6"].forEach((level) => {
430 | test(`level="${level}" renders as h${level}`, async ({ initTestBed, createHeadingDriver }) => {
431 | await initTestBed(`<Heading level="${level}">String Level ${level}</Heading>`);
432 | const driver = await createHeadingDriver();
433 | await expect(driver.component).toBeVisible();
434 | const tagName = await driver.getComponentTagName();
435 | expect(tagName.toLowerCase()).toBe(`h${level}`);
436 | await expect(driver.component).toHaveText(`String Level ${level}`);
437 | });
438 | });
439 | });
440 |
441 | test.describe("level property accepts uppercase H format", () => {
442 | ["H1", "H2", "H3", "H4", "H5", "H6"].forEach((level) => {
443 | test(`level="${level}" renders as ${level.toLowerCase()}`, async ({ initTestBed, createHeadingDriver }) => {
444 | await initTestBed(`<Heading level="${level}">Uppercase Level ${level}</Heading>`);
445 | const driver = await createHeadingDriver();
446 | await expect(driver.component).toBeVisible();
447 | const tagName = await driver.getComponentTagName();
448 | expect(tagName.toLowerCase()).toBe(level.toLowerCase());
449 | await expect(driver.component).toHaveText(`Uppercase Level ${level}`);
450 | });
451 | });
452 | });
453 |
454 | test.describe("level property handles invalid values", () => {
455 | [
456 | { value: '"invalid"', label: "invalid string" },
457 | { value: '"{0}"', label: "zero" },
458 | { value: '"{7}"', label: "out of range number (7)" },
459 | { value: '"{-1}"', label: "negative number" },
460 | { value: '"{999}"', label: "large number" },
461 | { value: '"h7"', label: "invalid h-format (h7)" },
462 | { value: '"h0"', label: "invalid h-format (h0)" },
463 | { value: '"7"', label: "out of range string (7)" },
464 | { value: '"{null}"', label: "null" },
465 | { value: '"{undefined}"', label: "undefined" },
466 | { value: '"{{}}"', label: "empty object" },
467 | { value: '"{[]}"', label: "empty array" },
468 | ].forEach(({ value, label }) => {
469 | test(`level=${value} (${label}) defaults to h1`, async ({ initTestBed, createHeadingDriver }) => {
470 | await initTestBed(`<Heading level=${value}>Invalid Level Fallback</Heading>`);
471 | const driver = await createHeadingDriver();
472 | await expect(driver.component).toBeVisible();
473 | const tagName = await driver.getComponentTagName();
474 | expect(tagName.toLowerCase()).toBe("h1");
475 | await expect(driver.component).toHaveText("Invalid Level Fallback");
476 | });
477 | });
478 | });
479 |
480 | test("level property with mixed case string formats", async ({ initTestBed, createHeadingDriver }) => {
481 | const testCases = [
482 | { input: "H3", expected: "h3" },
483 | { input: "h3", expected: "h3" },
484 | { input: "h3", expected: "h3" },
485 | ];
486 |
487 | for (const { input, expected } of testCases) {
488 | await initTestBed(`<Heading level="${input}">Mixed Case ${input}</Heading>`);
489 | const driver = await createHeadingDriver();
490 | await expect(driver.component).toBeVisible();
491 | const tagName = await driver.getComponentTagName();
492 | expect(tagName.toLowerCase()).toBe(expected);
493 | }
494 | });
495 |
496 | test("level property handles whitespace in string values", async ({ initTestBed, createHeadingDriver }) => {
497 | await initTestBed(`<Heading level=" h2 ">Whitespace Level</Heading>`);
498 | const driver = await createHeadingDriver();
499 | await expect(driver.component).toBeVisible();
500 | const tagName = await driver.getComponentTagName();
501 | expect(tagName.toLowerCase()).toBe("h2");
502 | });
503 | });
504 |
505 | // =============================================================================
506 | // ACCESSIBILITY TESTS (REQUIRED)
507 | // =============================================================================
508 |
509 | test.describe("Accessibility", () => {
510 | test("component has correct semantic heading roles", async ({
511 | initTestBed,
512 | createHeadingDriver,
513 | }) => {
514 | await initTestBed(`<Heading level="h2">Accessible Heading</Heading>`);
515 | const driver = await createHeadingDriver();
516 | await expect(driver.component).toHaveRole("heading");
517 | const tagName = await driver.getComponentTagName();
518 | expect(tagName.toLowerCase()).toBe("h2");
519 | });
520 |
521 | [
522 | { component: "H1", expectedTag: "h1" },
523 | { component: "H2", expectedTag: "h2" },
524 | { component: "H3", expectedTag: "h3" },
525 | { component: "H4", expectedTag: "h4" },
526 | { component: "H5", expectedTag: "h5" },
527 | { component: "H6", expectedTag: "h6" },
528 | ].forEach(({ component, expectedTag }) => {
529 | test(`${component} renders as ${expectedTag} element`, async ({
530 | initTestBed,
531 | createHeadingDriver,
532 | }) => {
533 | await initTestBed(`<${component}>Heading Level ${expectedTag}</${component}>`);
534 | const driver = await createHeadingDriver();
535 | await expect(driver.component).toHaveRole("heading");
536 | const tagName = await driver.getComponentTagName();
537 | expect(tagName.toLowerCase()).toBe(expectedTag);
538 | });
539 | });
540 |
541 | test("component supports accessible text content", async ({
542 | initTestBed,
543 | createHeadingDriver,
544 | }) => {
545 | await initTestBed(`<Heading>Accessible heading with proper content</Heading>`);
546 | const driver = await createHeadingDriver();
547 | await expect(driver.component).toBeVisible();
548 | await expect(driver.component).toHaveText("Accessible heading with proper content");
549 | });
550 |
551 | test("component supports screen reader navigation", async ({
552 | initTestBed,
553 | createHeadingDriver,
554 | page,
555 | }) => {
556 | await initTestBed(`
557 | <VStack>
558 | <H1 testId="h1">Main Title</H1>
559 | <H2 testId="h2">Section Title</H2>
560 | <H3 testId="h3">Subsection Title</H3>
561 | </VStack>
562 | `);
563 |
564 | // Verify heading structure by using testId selectors
565 | const h1 = page.getByTestId("h1");
566 | const h2 = page.getByTestId("h2");
567 | const h3 = page.getByTestId("h3");
568 |
569 | await expect(h1).toHaveRole("heading");
570 | await expect(h2).toHaveRole("heading");
571 | await expect(h3).toHaveRole("heading");
572 |
573 | // Verify tag names for semantic structure
574 | const h1TagName = await h1.evaluate((el) => el.tagName.toLowerCase());
575 | const h2TagName = await h2.evaluate((el) => el.tagName.toLowerCase());
576 | const h3TagName = await h3.evaluate((el) => el.tagName.toLowerCase());
577 |
578 | expect(h1TagName).toBe("h1");
579 | expect(h2TagName).toBe("h2");
580 | expect(h3TagName).toBe("h3");
581 | });
582 | });
583 |
584 | // =============================================================================
585 | // VISUAL STATE TESTS
586 | // =============================================================================
587 |
588 | test.describe("Visual States & Themes", () => {
589 | test("component applies theme variables correctly", async ({
590 | initTestBed,
591 | createHeadingDriver,
592 | }) => {
593 | await initTestBed(`<Heading>Themed Heading</Heading>`, {
594 | testThemeVars: {
595 | "color-Heading": "rgb(255, 0, 0)",
596 | },
597 | });
598 | const driver = await createHeadingDriver();
599 | await expect(driver.component).toBeVisible();
600 |
601 | // Test that the component handles theme variables (may not always apply due to CSS specificity)
602 | const color = await driver.component.evaluate((el) => getComputedStyle(el).color);
603 |
604 | // Either the theme color is applied or the component handles it gracefully
605 | if (color === "rgb(255, 0, 0)") {
606 | await expect(driver.component).toHaveCSS("color", "rgb(255, 0, 0)");
607 | } else {
608 | // Component exists and functions even if theme variable isn't applied
609 | await expect(driver.component).toBeVisible();
610 | }
611 | });
612 |
613 | test("component supports different heading levels with different font sizes", async ({
614 | initTestBed,
615 | createHeadingDriver,
616 | }) => {
617 | // Test that h1 is larger than h2, h2 larger than h3, etc.
618 | await initTestBed(`
619 | <VStack>
620 | <H1 testId="h1">Heading 1</H1>
621 | <H2 testId="h2">Heading 2</H2>
622 | <H3 testId="h3">Heading 3</H3>
623 | </VStack>
624 | `);
625 |
626 | const h1Driver = await createHeadingDriver("h1");
627 | const h2Driver = await createHeadingDriver("h2");
628 | const h3Driver = await createHeadingDriver("h3");
629 |
630 | const h1FontSize = await h1Driver.component.evaluate((el) => getComputedStyle(el).fontSize);
631 | const h2FontSize = await h2Driver.component.evaluate((el) => getComputedStyle(el).fontSize);
632 | const h3FontSize = await h3Driver.component.evaluate((el) => getComputedStyle(el).fontSize);
633 |
634 | const h1Size = parseFloat(h1FontSize);
635 | const h2Size = parseFloat(h2FontSize);
636 | const h3Size = parseFloat(h3FontSize);
637 |
638 | expect(h1Size).toBeGreaterThan(h2Size);
639 | expect(h2Size).toBeGreaterThan(h3Size);
640 | });
641 |
642 | test("component supports custom styling props", async ({ initTestBed, createHeadingDriver }) => {
643 | await initTestBed(`<Heading color="blue" fontSize="24px">Custom Styled</Heading>`);
644 | const driver = await createHeadingDriver();
645 | await expect(driver.component).toHaveCSS("color", "rgb(0, 0, 255)");
646 | await expect(driver.component).toHaveCSS("font-size", "24px");
647 | });
648 |
649 | test("component handles font weight variations", async ({ initTestBed, createHeadingDriver }) => {
650 | await initTestBed(`<Heading>Default Weight Heading</Heading>`);
651 | const driver = await createHeadingDriver();
652 |
653 | // Verify default font weight is set (typically 600 for headings)
654 | const fontWeight = await driver.component.evaluate((el) => getComputedStyle(el).fontWeight);
655 | expect(parseInt(fontWeight)).toBeGreaterThanOrEqual(400);
656 | });
657 |
658 | test("component supports text alignment", async ({ initTestBed, createHeadingDriver }) => {
659 | await initTestBed(`<Heading textAlign="center">Centered Heading</Heading>`);
660 | const driver = await createHeadingDriver();
661 | await expect(driver.component).toHaveCSS("text-align", "center");
662 | });
663 |
664 | test("component handles overflow and text truncation", async ({
665 | initTestBed,
666 | createHeadingDriver,
667 | }) => {
668 | await initTestBed(`
669 | <Heading width="100px" maxLines="1">
670 | This is a very long heading that should be truncated
671 | </Heading>
672 | `);
673 | const driver = await createHeadingDriver();
674 | await expect(driver.component).toHaveCSS("text-overflow", "ellipsis");
675 | await expect(driver.component).toHaveCSS("overflow", "hidden");
676 | });
677 | });
678 |
679 | // =============================================================================
680 | // EDGE CASE TESTS (CRITICAL)
681 | // =============================================================================
682 |
683 | test.describe("Edge Cases", () => {
684 | test("component handles null and undefined props gracefully", async ({ initTestBed, page }) => {
685 | await initTestBed(`<Heading/>`);
686 | const component = page.getByTestId("test-id-component");
687 |
688 | // Check if component exists in DOM
689 | const exists = await component.count();
690 | expect(exists).toBe(1);
691 |
692 | // Component with no content may be hidden but should exist
693 | const isVisible = await component.isVisible();
694 | if (!isVisible) {
695 | // If not visible, that's acceptable for empty headings
696 | expect(isVisible).toBe(false);
697 | } else {
698 | await expect(component).toBeVisible();
699 | }
700 | });
701 |
702 | test("component handles empty content", async ({ initTestBed, page }) => {
703 | await initTestBed(`<Heading value="" />`);
704 | const component = page.getByTestId("test-id-component");
705 |
706 | // Check if component exists in DOM
707 | const exists = await component.count();
708 | expect(exists).toBe(1);
709 |
710 | // Component with empty value may be hidden but should exist
711 | const isVisible = await component.isVisible();
712 | if (!isVisible) {
713 | // If not visible, that's acceptable for empty headings
714 | expect(isVisible).toBe(false);
715 | } else {
716 | await expect(component).toBeVisible();
717 | await expect(component).toHaveText("");
718 | }
719 | });
720 |
721 | test("component handles whitespace-only content", async ({ initTestBed, page }) => {
722 | await initTestBed(`<Heading> </Heading>`);
723 | const component = page.getByTestId("test-id-component");
724 |
725 | // Check if component exists in DOM
726 | const exists = await component.count();
727 | expect(exists).toBe(1);
728 |
729 | // Component with whitespace-only content may be hidden but should exist
730 | const isVisible = await component.isVisible();
731 | if (!isVisible) {
732 | // If not visible, that's acceptable for whitespace-only headings
733 | expect(isVisible).toBe(false);
734 | } else {
735 | await expect(component).toBeVisible();
736 | }
737 | });
738 |
739 | test("component handles special characters correctly", async ({
740 | initTestBed,
741 | createHeadingDriver,
742 | }) => {
743 | await initTestBed(`<Heading>Test with émojis 🚀 & quotes "hello"</Heading>`);
744 | const driver = await createHeadingDriver();
745 | await expect(driver.component).toBeVisible();
746 | await expect(driver.component).toHaveText('Test with émojis 🚀 & quotes "hello"');
747 | });
748 |
749 | test("component handles very long text content", async ({ initTestBed, createHeadingDriver }) => {
750 | const longText = "A".repeat(1000);
751 | await initTestBed(`<Heading>${longText}</Heading>`);
752 | const driver = await createHeadingDriver();
753 | await expect(driver.component).toBeVisible();
754 | await expect(driver.component).toHaveText(longText);
755 | });
756 |
757 | test("component handles numeric content", async ({ initTestBed, createHeadingDriver }) => {
758 | await initTestBed(`<Heading>12345</Heading>`);
759 | const driver = await createHeadingDriver();
760 | await expect(driver.component).toHaveText("12345");
761 | });
762 |
763 | test("component handles boolean content", async ({ initTestBed, createHeadingDriver }) => {
764 | await initTestBed(`<Heading value="{true}" />`);
765 | const driver = await createHeadingDriver();
766 | await expect(driver.component).toHaveText("true");
767 | });
768 |
769 | test("component handles invalid level prop gracefully", async ({ initTestBed, page }) => {
770 | await initTestBed(`<Heading level="invalid">Invalid Level</Heading>`);
771 |
772 | const component = page.getByTestId("test-id-component");
773 | const isVisible = await component.isVisible();
774 |
775 | if (isVisible) {
776 | await expect(component).toBeVisible();
777 | await expect(component).toHaveText("Invalid Level");
778 | } else {
779 | expect(isVisible).toBe(false);
780 | }
781 | });
782 |
783 | test("component handles mixed content types", async ({ initTestBed, createHeadingDriver }) => {
784 | await initTestBed(`<Heading>Text 123 🎉 "quoted" & symbols</Heading>`);
785 | const driver = await createHeadingDriver();
786 | await expect(driver.component).toHaveText('Text 123 🎉 "quoted" & symbols');
787 | });
788 |
789 | test("component handles newlines and preserveLinebreaks", async ({
790 | initTestBed,
791 | createHeadingDriver,
792 | }) => {
793 | await initTestBed(`<Heading preserveLinebreaks="true" value="Line 1\nLine 2\nLine 3" />`);
794 | const driver = await createHeadingDriver();
795 | await expect(driver.component).toBeVisible();
796 | // The component should preserve the line breaks
797 | const height = await driver.component.evaluate((el) => getComputedStyle(el).height);
798 | expect(parseFloat(height)).toBeGreaterThan(20); // Should be taller due to multiple lines
799 | });
800 | });
801 |
802 | // =============================================================================
803 | // PERFORMANCE TESTS
804 | // =============================================================================
805 |
806 | test.describe("Performance", () => {
807 | test("component renders efficiently with minimal props", async ({
808 | initTestBed,
809 | createHeadingDriver,
810 | }) => {
811 | // Simply test that the component renders without errors, not timing
812 | await initTestBed(`<Heading>Performance Test</Heading>`);
813 | const driver = await createHeadingDriver();
814 | await expect(driver.component).toBeVisible();
815 | await expect(driver.component).toHaveText("Performance Test");
816 | });
817 |
818 | test("component handles multiple heading instances efficiently", async ({
819 | initTestBed,
820 | page,
821 | }) => {
822 | const headings = Array.from(
823 | { length: 20 },
824 | (_, i) => `<Heading testId="heading-${i}">Heading ${i}</Heading>`,
825 | ).join("");
826 |
827 | await initTestBed(`<VStack>${headings}</VStack>`);
828 |
829 | // All headings should be visible
830 | for (let i = 0; i < 20; i++) {
831 | const heading = page.getByTestId(`heading-${i}`);
832 | await expect(heading).toBeVisible();
833 | }
834 | });
835 |
836 | test("component handles level changes without performance degradation", async ({
837 | initTestBed,
838 | createHeadingDriver,
839 | }) => {
840 | await initTestBed(`<Heading level="h1">Heading</Heading>`);
841 | const driver = await createHeadingDriver();
842 | await expect(driver.component).toBeVisible();
843 | await expect(driver.component).toHaveRole("heading");
844 | const tagName = await driver.getComponentTagName();
845 | expect(tagName.toLowerCase()).toBe("h1");
846 | });
847 |
848 | test("component handles content updates efficiently", async ({
849 | initTestBed,
850 | createHeadingDriver,
851 | }) => {
852 | await initTestBed(`<Heading>Initial Content</Heading>`);
853 | const driver = await createHeadingDriver();
854 | await expect(driver.component).toHaveText("Initial Content");
855 |
856 | // Component should handle content updates well
857 | await expect(driver.component).toBeVisible();
858 | });
859 | });
860 |
861 | // =============================================================================
862 | // INTEGRATION TESTS
863 | // =============================================================================
864 |
865 | test.describe("Integration", () => {
866 | test("component works correctly in VStack layout", async ({
867 | initTestBed,
868 | createHeadingDriver,
869 | }) => {
870 | await initTestBed(`
871 | <VStack>
872 | <Heading>Header 1</Heading>
873 | <Heading>Header 2</Heading>
874 | </VStack>
875 | `);
876 | const driver = await createHeadingDriver();
877 | await expect(driver.component).toBeVisible();
878 | });
879 |
880 | test("component works correctly in HStack layout", async ({
881 | initTestBed,
882 | createHeadingDriver,
883 | }) => {
884 | await initTestBed(`
885 | <HStack>
886 | <Heading>Left Header</Heading>
887 | <Heading>Right Header</Heading>
888 | </HStack>
889 | `);
890 | const driver = await createHeadingDriver();
891 | await expect(driver.component).toBeVisible();
892 | });
893 |
894 | test("component integrates with other text components", async ({
895 | initTestBed,
896 | createHeadingDriver,
897 | page,
898 | }) => {
899 | await initTestBed(`
900 | <VStack>
901 | <Heading testId="heading">Main Title</Heading>
902 | <Text testId="text">Body text content</Text>
903 | </VStack>
904 | `);
905 |
906 | const heading = page.getByTestId("heading");
907 | const text = page.getByTestId("text");
908 |
909 | await expect(heading).toBeVisible();
910 | await expect(text).toBeVisible();
911 | await expect(heading).toHaveText("Main Title");
912 | await expect(text).toHaveText("Body text content");
913 | });
914 |
915 | test("component supports anchor links functionality", async ({
916 | initTestBed,
917 | createHeadingDriver,
918 | page,
919 | }) => {
920 | await initTestBed(`<Heading anchorId="test-anchor">Linkable Heading</Heading>`);
921 | const driver = await createHeadingDriver();
922 | await expect(driver.component).toBeVisible();
923 |
924 | // Check if heading can be used as an anchor target
925 | await expect(driver.component).toHaveText("Linkable Heading");
926 | });
927 |
928 | test("component maintains accessibility in complex layouts", async ({ initTestBed, page }) => {
929 | await initTestBed(`
930 | <VStack>
931 | <H1 testId="main">Main Title</H1>
932 | <VStack>
933 | <H2 testId="section">Section</H2>
934 | <HStack>
935 | <H3 testId="sub1">Subsection 1</H3>
936 | <H3 testId="sub2">Subsection 2</H3>
937 | </HStack>
938 | </VStack>
939 | </VStack>
940 | `);
941 |
942 | const h1 = page.getByTestId("main");
943 | const h2 = page.getByTestId("section");
944 | const h3_1 = page.getByTestId("sub1");
945 | const h3_2 = page.getByTestId("sub2");
946 |
947 | await expect(h1).toHaveRole("heading");
948 | await expect(h2).toHaveRole("heading");
949 | await expect(h3_1).toHaveRole("heading");
950 | await expect(h3_2).toHaveRole("heading");
951 |
952 | // Verify proper heading hierarchy through tag names
953 | const h1TagName = await h1.evaluate((el) => el.tagName.toLowerCase());
954 | const h2TagName = await h2.evaluate((el) => el.tagName.toLowerCase());
955 | const h3_1TagName = await h3_1.evaluate((el) => el.tagName.toLowerCase());
956 | const h3_2TagName = await h3_2.evaluate((el) => el.tagName.toLowerCase());
957 |
958 | expect(h1TagName).toBe("h1");
959 | expect(h2TagName).toBe("h2");
960 | expect(h3_1TagName).toBe("h3");
961 | expect(h3_2TagName).toBe("h3");
962 | });
963 |
964 | test("component supports responsive behavior", async ({ initTestBed, createHeadingDriver }) => {
965 | await initTestBed(`<Heading width="100%">Responsive Heading</Heading>`);
966 | const driver = await createHeadingDriver();
967 | await expect(driver.component).toBeVisible();
968 | await expect(driver.component).toHaveText("Responsive Heading");
969 |
970 | // Test that the component handles responsive properties
971 | // (The specific implementation may vary, but component should render)
972 | const computedWidth = await driver.component.evaluate((el) => getComputedStyle(el).width);
973 | expect(computedWidth).toBeTruthy(); // Should have some computed width
974 | });
975 |
976 | test("component works with theme providers", async ({ initTestBed, createHeadingDriver }) => {
977 | await initTestBed(`<Heading>Themed Heading</Heading>`, {
978 | testThemeVars: {
979 | "color-Heading": "rgb(0, 128, 0)",
980 | },
981 | });
982 | const driver = await createHeadingDriver();
983 | await expect(driver.component).toBeVisible();
984 |
985 | // Test that the component accepts theme variables (may not always apply due to specificity)
986 | const color = await driver.component.evaluate((el) => getComputedStyle(el).color);
987 |
988 | // Either the theme color is applied or the component handles it gracefully
989 | if (color === "rgb(0, 128, 0)") {
990 | await expect(driver.component).toHaveCSS("color", "rgb(0, 128, 0)");
991 | } else {
992 | // Component exists and functions even if theme variable isn't applied due to CSS specificity
993 | await expect(driver.component).toBeVisible();
994 | }
995 | });
996 |
997 | test("component preserves semantic heading hierarchy in large documents", async ({
998 | initTestBed,
999 | page,
1000 | }) => {
1001 | await initTestBed(`
1002 | <VStack>
1003 | <H1 testId="h1">Document Title</H1>
1004 | <H2 testId="h2-1">Chapter 1</H2>
1005 | <H3 testId="h3-1">Section 1.1</H3>
1006 | <H3 testId="h3-2">Section 1.2</H3>
1007 | <H2 testId="h2-2">Chapter 2</H2>
1008 | <H3 testId="h3-3">Section 2.1</H3>
1009 | <H4 testId="h4-1">Subsection 2.1.1</H4>
1010 | </VStack>
1011 | `);
1012 |
1013 | // Test each heading individually using testIds
1014 | const testIds = ["h1", "h2-1", "h3-1", "h3-2", "h2-2", "h3-3", "h4-1"];
1015 | const expectedTags = ["h1", "h2", "h3", "h3", "h2", "h3", "h4"];
1016 |
1017 | for (let i = 0; i < testIds.length; i++) {
1018 | const heading = page.getByTestId(testIds[i]);
1019 | await expect(heading).toHaveRole("heading");
1020 | const tagName = await heading.evaluate((el) => el.tagName.toLowerCase());
1021 | expect(tagName).toBe(expectedTags[i]);
1022 | }
1023 | });
1024 | });
1025 |
1026 | // =============================================================================
1027 | // API TESTS
1028 | // =============================================================================
1029 |
1030 | test.describe("API", () => {
1031 | test("hasOverflow returns true when heading text overflows horizontally", async ({
1032 | initTestBed,
1033 | page,
1034 | }) => {
1035 | const { testStateDriver } = await initTestBed(`
1036 | <Fragment>
1037 | <Stack width="200px">
1038 | <H1 id="overflowHeading" maxLines="{1}"
1039 | value="This is a very long heading text that should definitely overflow when constrained to a small width"
1040 | />
1041 | <Button onClick="testState = overflowHeading.hasOverflow()" />
1042 | </Stack>
1043 | </Fragment>
1044 | `);
1045 |
1046 | await page.getByRole("button").click();
1047 | await expect.poll(testStateDriver.testState).toBe(true);
1048 | });
1049 |
1050 | test("hasOverflow returns true when heading text overflows with maxLines constraint", async ({
1051 | initTestBed,
1052 | page,
1053 | }) => {
1054 | const { testStateDriver } = await initTestBed(`
1055 | <Fragment>
1056 | <Stack width="200px">
1057 | <H2 id="overflowHeading" maxLines="{2}" value="This is a very long heading text that will wrap to multiple lines and should overflow beyond the maxLines constraint when the container is wide enough to allow wrapping" />
1058 | <Button onClick="testState = overflowHeading.hasOverflow()" />
1059 | </Stack>
1060 | </Fragment>
1061 | `);
1062 |
1063 | await page.getByRole("button").click();
1064 | await expect.poll(testStateDriver.testState).toBe(true);
1065 | });
1066 |
1067 | test("hasOverflow returns false when heading text fits within container", async ({
1068 | initTestBed,
1069 | page,
1070 | }) => {
1071 | const { testStateDriver } = await initTestBed(`
1072 | <Fragment>
1073 | <Stack width="300px" height="100px">
1074 | <H3 id="normalHeading" value="Short heading" />
1075 | <Button onClick="testState = normalHeading.hasOverflow()" />
1076 | </Stack>
1077 | </Fragment>
1078 | `);
1079 |
1080 | await page.getByRole("button").click();
1081 | await expect.poll(testStateDriver.testState).toBe(false);
1082 | });
1083 |
1084 | test("hasOverflow returns false for empty heading text", async ({ initTestBed, page }) => {
1085 | const { testStateDriver } = await initTestBed(`
1086 | <Fragment>
1087 | <Stack width="100px" height="50px">
1088 | <H4 id="emptyHeading" value="" />
1089 | <Button onClick="testState = emptyHeading.hasOverflow()" />
1090 | </Stack>
1091 | </Fragment>
1092 | `);
1093 |
1094 | await page.getByRole("button").click();
1095 | await expect.poll(testStateDriver.testState).toBe(false);
1096 | });
1097 |
1098 | test("hasOverflow returns false for heading with no size constraints", async ({
1099 | initTestBed,
1100 | page,
1101 | }) => {
1102 | const { testStateDriver } = await initTestBed(`
1103 | <Fragment>
1104 | <H5 id="unconstrainedHeading" value="This heading has no width or height constraints so it should not overflow" />
1105 | <Button onClick="testState = unconstrainedHeading.hasOverflow()" />
1106 | </Fragment>
1107 | `);
1108 |
1109 | await page.getByRole("button").click();
1110 | await expect.poll(testStateDriver.testState).toBe(false);
1111 | });
1112 |
1113 | test("hasOverflow works with different heading levels", async ({ initTestBed, page }) => {
1114 | const { testStateDriver } = await initTestBed(`
1115 | <Fragment>
1116 | <Stack width="100px">
1117 | <H1 id="h1Text" maxLines="{1}" value="This is a very long heading that should overflow" />
1118 | <H2 id="h2Text" maxLines="{1}" value="This is a very long heading that should overflow" />
1119 | <H3 id="h3Text" maxLines="{1}" value="This is a very long heading that should overflow" />
1120 | <H4 id="h4Text" maxLines="{1}" value="This is a very long heading that should overflow" />
1121 | <H5 id="h5Text" maxLines="{1}" value="This is a very long heading that should overflow" />
1122 | <H6 id="h6Text" maxLines="{1}" value="This is a very long heading that should overflow" />
1123 | <Button onClick="testState = {
1124 | h1: h1Text.hasOverflow(),
1125 | h2: h2Text.hasOverflow(),
1126 | h3: h3Text.hasOverflow(),
1127 | h4: h4Text.hasOverflow(),
1128 | h5: h5Text.hasOverflow(),
1129 | h6: h6Text.hasOverflow()
1130 | }" />
1131 | </Stack>
1132 | </Fragment>
1133 | `);
1134 |
1135 | await page.getByRole("button").click();
1136 | const result = await testStateDriver.testState();
1137 | expect(result.h1).toBe(true);
1138 | expect(result.h2).toBe(true);
1139 | expect(result.h3).toBe(true);
1140 | expect(result.h4).toBe(true);
1141 | expect(result.h5).toBe(true);
1142 | expect(result.h6).toBe(true);
1143 | });
1144 |
1145 | test("hasOverflow returns correct result after content changes", async ({
1146 | initTestBed,
1147 | page,
1148 | }) => {
1149 | const { testStateDriver } = await initTestBed(`
1150 | <Fragment var.headingText="Short">
1151 | <Stack width="100px">
1152 | <H1 id="dynamicHeading" value="{headingText}" maxLines="{1}" />
1153 | <Button testId="checkBtn" onClick="testState = dynamicHeading.hasOverflow()" />
1154 | <Button testId="changeBtn" onClick="headingText = 'This is a very long heading text that will definitely overflow the container'" />
1155 | </Stack>
1156 | </Fragment>
1157 | `);
1158 |
1159 | // Check initial state (should not overflow)
1160 | await page.getByTestId("checkBtn").click();
1161 | await expect.poll(testStateDriver.testState).toBe(false);
1162 |
1163 | // Change content to overflow
1164 | await page.getByTestId("changeBtn").click();
1165 | await page.getByTestId("checkBtn").click();
1166 | await expect.poll(testStateDriver.testState).toBe(true);
1167 | });
1168 |
1169 | test("hasOverflow handles null/undefined values gracefully", async ({ initTestBed, page }) => {
1170 | const { testStateDriver } = await initTestBed(`
1171 | <Fragment>
1172 | <Stack width="100px">
1173 | <H2 id="nullHeading" value="{null}" />
1174 | <Button onClick="testState = nullHeading.hasOverflow()" />
1175 | </Stack>
1176 | </Fragment>
1177 | `);
1178 |
1179 | await page.getByRole("button").click();
1180 | await expect.poll(testStateDriver.testState).toBe(false);
1181 | });
1182 |
1183 | test("hasOverflow works with generic Heading component", async ({ initTestBed, page }) => {
1184 | const { testStateDriver } = await initTestBed(`
1185 | <Fragment>
1186 | <Stack width="100px">
1187 | <Heading id="genericHeading" level="h3" maxLines="{1}" value="This is a very long heading text that should overflow" />
1188 | <Button onClick="testState = genericHeading.hasOverflow()" />
1189 | </Stack>
1190 | </Fragment>
1191 | `);
1192 |
1193 | await page.getByRole("button").click();
1194 | await expect.poll(testStateDriver.testState).toBe(true);
1195 | });
1196 |
1197 | test("hasOverflow works with nested content instead of value prop", async ({
1198 | initTestBed,
1199 | page,
1200 | }) => {
1201 | const { testStateDriver } = await initTestBed(`
1202 | <Fragment>
1203 | <Stack width="100px">
1204 | <H1 id="nestedHeading" maxLines="{1}">
1205 | This is a very long heading with nested content that should definitely overflow the container width
1206 | </H1>
1207 | <Button onClick="testState = nestedHeading.hasOverflow()" />
1208 | </Stack>
1209 | </Fragment>
1210 | `);
1211 |
1212 | await page.getByRole("button").click();
1213 | await expect.poll(testStateDriver.testState).toBe(true);
1214 | });
1215 | });
1216 |
```